Intellij IDEA - Cheat Sheet (aka useful shortcuts) #idea
Note: Some of these keymapping are specific to IdeaVim plugin. If you don't use IdeaVim (what' wrong with you :)), I've tried to point out where they differ, but I could have missed a few
Ctrl-P
- Popup parameter documentation for method callsNote: Ctrl-Shift-P
under IdeaVim
in windows
Ctrl-Alt-V
- Variable refactoring - creates a variable from an expressionCtrl-Shift-V
- Choose from the last 5 copiesCtrl-J
- shortcut to bring up a list of available live templates (only in insert mode in IdeaVim
)Ctrl-Alt-T
- select text block and hit Ctrl-Alt-T
to bring up surround template
suggestionsCtrl-/
or Ctrl-Shift-/
- Comment/Uncomment current line or selectionCtrl-Shift-Space
- Smart type completion to complete an expression with a method call or variable with a type suitable in the current contextCtrl-Shift-I
- Look up definitions on the suggestions provided by smart type completionShift-F6
- Rename refactoringCtrl-Alt-Shift-N
- Finds project artifacts using fuzzy searchCtrl-Alt-B
- Navigate to the declaration of a class, method or variable (under the cursor) (Ctrl-B
is the default keymap)Ctrl-Alt-Left
- to go back to where you came from (Ctrl-Alt-Right
to go forward again)Ctrl-Shift-E
- Popup of recently opened files (Ctrl-E
is the default keymap)Ctrl-Shift-A
- Search for actions/shortcuts (meta-shortcut)