Most indispensable IntelliJ IDEA keyboard shortcuts. Learn the most useful IntelliJ IDEA keyboard shortcuts to start using the IDE in a most efficient way: find action by name, insert a live template, search everywhere, etc.

IntelliJ IDEA, as a keyboard-centric IDE, suggests keyboard shortcuts for most of its actions. In this topic, you can find a short list of the most indispensable of them, to make your first steps with IntelliJ IDEA easy.

IntelliJ IDEA also provides the default keymap reference in the pdf format. To view the keymap reference, choose Help | Keymap Reference from the main menu.

See the detailed list of default keyboard shortcuts in the Keyboard Shortcuts Reference and learn how to customize your preferred keymap in the Configuring Keyboard Shortcuts section.

ActionShortcut
Find action by name⇧⌘A⇧⌘A⌘3^ ⇧ A^ ⇧ A
Show the list of available intention actions .⌥⏎⌥⏎⌘1⌥ Enter⌥ Enter
Switch between views (Project,Structure, etc.).⌥F1⌥F1⌥⌘W⌥ F1⌥ F1
Switch between the tool windows and files opened in the editor. ⌃⇥⌃⇥⌃⇥^ Tab^ X, B
Show the Navigation bar.⌘↑⌥↖⌥⌘B⌥ Home⌥ Home
Insert a live template.⌘J⌘J^ J^ J
Surround with a live template.⌥⌘J⌥⌘J⌥⌘J^ ⌥ J^ ⌥ J
Edit an item from the Project or another tree view.⌘↓F4F3F4F4
Comment or uncomment a line or fragment of code with the line or block comment.⌘/⌘/⌘/^ Slash⌥ Semicolon

⌥⌘/⌃⇧/⌃⇧/^ ⇧ Slash^ ⇧ Slash
Find class or file by name.⌘O⌘N⇧⌘T^ Comma⇧ ⌥ G

⇧⌘O⇧⌘N⇧⌘R^ ⇧ N^ X, Ctrl F
Duplicate the current line or selection.⌘D⌘D^ D⌘ D
Incremental expression selection.⌥↑⌘W⌃⇧↑^ W^ ⌥ W and ⌥↓⇧⌘W⌃⇧↓^ ⇧ W^ ⇧ W
Find/replace text string in the current file.⌘F⌘F^ F^ ⌥ S

⌘R⌘R^ H⇧ ⌥ 5
Find/replace text in the project or in the specified directory⇧⌘F⌃⇧F⌃H^ ⇧ F^ ⇧ F

⇧⌘R⌃⇧R^ ⇧ R^ ⇧ R
Search everywhere.Double-press
Quick view the usages of the selected symbol.⇧⌘F7⇧⌘F7^ ⇧ F7^ ⇧ F7
Expand or collapse a code fragment in the editor.^ NumPad Plus^ NumPad Plus

⌘-⌘-⌘-^ NumPad -^ NumPad -
Invoke code completion.⌃Space⌃Space⌃Space^ Space⌥ Slash
Smart statement completion.⇧⌘⏎⇧⌘⏎⇧⌘⏎^ ⇧ Enter^ ⇧ Enter
Smart completion⌃⇧Space⌃⇧Space⌥⇧Space⇧ ⌥ Space^ ⇧ Space
Show the list of available refactorings (Refactor This).⌃T⌥⇧⌘T⌃T^ ⇧ ⌥ T^ ⇧ ⌥ T

The complete keymap reference is available from the main menu (Help | Keymap Reference).