Software Development
My tips for using IntelliJ IDEA effectively
I wanted to share my tips and tricks that and especially keyboard shortcuts that make me more productive when using IntelliJ IDEA. IntelliJ is my favorite IDE and a very well thought-out program in general, and despite trying to learn the countless shortcuts available, there are a few that give you the biggest productivity boost already.
My frequently used features and shortcuts that I showed in the video are:
Coding
- IdeaVIM
- Live templates (e.g.
main
→public static void main( …
) - Postfix completion (e.g.
"Hello".sout
→System.out.println("Hello");
) Ctrl+Space
: Basic code completionCtrl+Shift+Enter
: Complete current statementAlt+Enter
: Show context actions (aka “quick fix”)Ctrl+Alt+L
: Reformat code (and optimize imports when activated)Ctrl+B
: Go to declaration / usageCtrl+Shift+B
: Go to implementation(s)Ctrl+U
: Go to super methodAlt+Insert
: Generate codeF2
: Next highlighted errorCtrl+Alt+V/F/C/P
: Extract variable / field / constant / parameterCtrl+Alt+N
: InlineCtrl+F12
: File structure (e.g. list of methods)
Navigating
Ctrl+N
: Go to classCtrl+Shift+N
: Go to fileShift+Shift
: Find allAlt+1
: Project viewAlt+F1+Enter
: Jump to file in project viewCtrl+Shift+F
: Find in filesAlt+Left/Right
: Switch open files- NerdTree in IdeaVIM
Running
Ctrl+Shift+F10
: Run current contextShift+F10
: RunShift+F9
: DebugF7/F8/F9
: (debug mode) Step into / Step over / Resume program
Published on Java Code Geeks with permission by Sebastian Daschner, partner at our JCG program. See the original article here: My tips for using IntelliJ IDEA effectively (Video) Opinions expressed by Java Code Geeks contributors are their own. |
Thanks, but how do these map to Mac keystrokes?