Tips for Using IntelliJ IDEA Effectively [Video]
Learn how to use IntelliJ IDEA to its full potential.
Join the DZone community and get the full member experience.
Join For FreeI wanted to share my tips and tricks that and especially some 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
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 filesNerdTree in IdeaVIM
Running
Ctrl+Shift+F10
: Run current contextShift+F10
: RunShift+F9
: DebugF7/F8/F9
: (debug mode) Step into/Step over/Resume program
Published at DZone with permission of Sebastian Daschner. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments