IntelliJ IDEA Shortcuts

IntelliJ IDEA is a very good Java IDE

Some shortcut keys are as follows:

macOS Windows Description
Option+Enter Alt+Enter show Context Actions, this works anywhere but is good on errors and warnings
Shift+F2 F2 jump to next warning, error or suggestion
Cmd+E Ctrl+E show recent files list as well as windows
Cmd+B Ctrl+B go to declaration
Cmd+[ Ctrl+Alt+Left Back, handy after "go to declaration"
Cmd+] Ctrl+Alt+Right Forward
Alt+F7 Alt+F7 find where used
Alt+Up, Alt+Down Ctrl+W, Shift+Ctrl+W expand and shrink selection
Cmd+/ Ctrl+/ add or remove comment
Shift+Cmd+Enter Shift+Ctrl+Enter complete current statement
Ctrl+T Ctrl+Alt+Shift+T show all refactoring options
Cmd+Option+T Ctrl+Alt+T surround with...
Shift+Cmd+A Shift+Ctrl+A find action
2 x Shift 2 x Shift search for anything
2 x Ctrl 2 x Ctrl Run something
Shift+Option+Click Shift+Alt+Click Add/Remove an extra cursor or caret, or Escape to go back to single caret, see IntelliJ IDEA. Helen's Take On: Using Multiple Carets - YouTube for more options on multiple carets
Ctrl+V Alt+` Show handy popup menu of VCS operations, like commit, push etc
Cmd+Opt+L Ctrl+Alt+L Reformat the code, based on project style settings
Cmd+N Alt+Ins Generate code

Further help can be found at IntelliJ IDEA keyboard shortcuts - Help | IntelliJ IDEA, with a complete list at IntelliJIDEA_ReferenceCard.pdf.

Useful Tweets