IntelliJ IDEA is an integrated development environment written in Java for developing computer software

Keyboard Shortcuts Link to heading

General Link to heading

Action Windows/Linux MacOS
Smart code completion * Ctrl+Shift+Space ^⇧Space
Basic code completion * Ctrl+Space ^Space
Generate code * Alt+Insert ⌘N
Resent files popup * Ctrl+E ⌘E
Rename * Shift+F6 ⇧F6
Toggle maximizing editor * Ctrl+Shift+F12 ⌘⇧F12
Close active editor tab Ctrl+F4 ⌘W

Search / Replace Link to heading

Action Windows/Linux MacOS
Search everywhare * Double Shift Double ⇧
Find next / previous F3 / Shift+F3 ⌘G / ⌘⇧G
Replace Ctrl+R ⌘R
Select next occurrence * Alt+J ^G
Select all occurrence Ctrl+Alt+ShiftJ ^⌘G
Unselect occurrence Alt+Shift+J ^G

Editing Link to heading

Action Windows/Linux MacOS
Extend Selection Ctrl+W ⌥Up
Shrink selection Ctrl+Shift+W ⌥Down
Inspect current file Alt+Shift+I ⌥⇧I
Open settings dialog Ctrl+Alt+S ⌘,
Open project dialog Ctrl+Alt+Shift+S ⌘;
Override methods Ctrl+O ^O
Implement methods Ctrl+I ^I
Comment / uncomment (line) Ctrl+/ ⌘/
Comment / uncomment (block) Ctrl+Shift+/ ⌘⌥/
Reformat code Ctrl+Alt+L ⌘⌥L
Optimize imports Ctrl+Alt+O ^⌥O
Duplicate current line Ctrl+D ⌘D
Delete line at caret Ctrl+Y ⌘⌫
Smart line join Ctrl+Shift+J ^⇧J
Toggle case for word or block Ctrl+Shift+U ⌘⇧U
Select till code block start Ctrl+Shift+[ ⌘⇧[
Select till code block end Ctrl+Shift+] ⌘⇧]
Refactoring this Ctrl+Alt+Shift+T ^T
Action Windows/Linux MacOS
Go to class Ctrl+N ⌘O
Go to file Ctrl+Shift+N ⌘⇧O
Go to editor (from tool window) Esc
Hide active or last tool window Shift+Esc ⇧⎋
Go to line Ctrl+G ⌘L
Select current file in view Alt+F1 ⌥F1
Go to declaration Ctrl+B ⌘B
Go to implementation(s) Ctrl+Alt+B ⌘⌥B
Go to super class/method Ctrl+U ⌘U
Go to previous / next method Alt+Up/Down ^Up / ^Down
Show navigation bar * Alt+Home ⌥Home
Toggle bookmark F11 F3
Show bookmarks Shift+F11 ⌘F3
Show usages Ctrl+Alt+F7 ⌘⌥F7

Compile and Run Link to heading

Action Windows/Linux MacOS
Make project Ctrl+F9 ⌘F9
Run Shift+F10 ⌃R
Debug Shift+F9 ^D