- Sun 17 March 2019
- notes
- #shortkeys, #shortcuts, #intellij-idea, #java
This cheatsheet was created to remember commands which I widely use in IntelliJ IDEA. Most of the shortcuts are similar to the shortcuts for Visual Studio (see my previous post), but still some minor differences are presented. Other default shortcuts for IntelliJ Idea can be found on jetbrains website.
To assign shortkeys to commands you have to open Settings/Preferences
dialog (Ctrl+Alt+S
) and select Keymap
.
Shortcuts which are widely used during writing a code | ||
---|---|---|
Command | Shortkey(s) | Explanation |
Main menu → Navigate → Declaration | CTRL + Button1 Click | Go to declaration of the selected symbol |
Main menu → Navigate → Implementation(s) | CTRL + ALT + Button1 Click | Go to implementation(s) of the selected Symbol |
Main menu → Edit → Find → Find Usages | ALT + F7 | Find all references of the selected symbol |
Main menu → Code → Comment with Line Comment | CTRL + E + C | Comment/Uncomment selection with line comment |
Main menu → Code → Reformat Code | CTRL + E + F | Reformatting the code |
Main menu → Navigate → Back/Forward | CTRL + ALT + ← / → | Move back/forward to previous editing point |
END / HOME | Move to end /start of the line | |
CTRL + X | Cut the line/selected field | |
Editor Actions → Delete Line | SHIFT + L | Delete the line |
Main menu → Window → Editor Tabs → Close | CTRL + W | Close currently open document |
Main menu → Window → Editor Tabs → Close Others | CTRL + ALT + W | Close All But this |
SHIFT + LEFT/RIGHT/UP/DOWN | Select lines of code | |
CTRL + C + V | Copy line and paste it in next line |
Shortcuts which are widely used during debugging | ||
---|---|---|
Command | Shortkey(s) | Explanation |
Main menu → Run → Run | F5 | Run |
Main menu → Run → Run to Cursor | SHIFT + F5 | Run to cursor |
Main menu → Build → Build Project | F6 | Build project |
Main menu → Build → Build Module | SHIFT + F6 | Build module |
Main menu → Run → Debug | SHIFT + F9 | Start debugger |
Main menu → Run → Resume | F9 | Resume / Go to next breakpoint |
Main menu → Run → Step Over | F10 | Debugger step over |
Main menu → Run → Step Into | F11 | Debugger step into |
Main menu → Run → Step Out | SHIFT + F11 | Debugger step out |
Main menu → Run → Toogle Line Breakpoint | CTRL + F8 | Toggle breakpoint |
Main menu → Run → Stop | F2 | Stop execution |