Cheat Sheet Library

JetBrains IDEs Cheat Sheet

The same shortcuts work in every JetBrains IDE (default keymaps). If you can remember only one: Double Shift (Search Everywhere) and Alt + Enter (fix anything).

  • 59 entries
  • 7 sections
  • Updated

59 entries

On this page

Find Anything #

ActionWindows / LinuxmacOS
Search EverywhereShift Shift⇧ ⇧
Find Action (any command/setting)Ctrl + Shift + A⌘ ⇧ A
Go to classCtrl + N⌘ O
Go to fileCtrl + Shift + N⌘ ⇧ O
Go to symbolCtrl + Alt + Shift + N⌘ ⌥ O
Recent filesCtrl + E⌘ E
Find in filesCtrl + Shift + F⌘ ⇧ F
Replace in filesCtrl + Shift + R⌘ ⇧ R
Go to lineCtrl + G⌘ L
ActionWindows / LinuxmacOS

Edit #

ActionWindows / LinuxmacOS
Show fixes / intentionsAlt + Enter⌥ Enter
Code completionCtrl + Space⌃ Space
Complete statementCtrl + Shift + Enter⌘ ⇧ Enter
Duplicate lineCtrl + D⌘ D
Delete lineCtrl + Y⌘ Delete
Move line up / downAlt + Shift + ↑/↓⌥ ⇧ ↑/↓
Comment lineCtrl + /⌘ /
Reformat codeCtrl + Alt + L⌘ ⌥ L
Optimize importsCtrl + Alt + O⌃ ⌥ O
Extend / shrink selectionCtrl + W / Ctrl + Shift + W⌥ ↑ / ⌥ ↓
Add next occurrenceAlt + J⌃ G
Select all occurrencesCtrl + Alt + Shift + J⌃ ⌘ G
Add caretAlt + Shift + Click⌥ ⇧ + Click
Generate (getters, constructor…)Alt + Insert⌘ N
Surround with (if, try…)Ctrl + Alt + T⌘ ⌥ T
Live templatesCtrl + J⌘ J

Refactor #

ActionWindows / LinuxmacOS
Refactor This (menu)Ctrl + Alt + Shift + T⌃ T
RenameShift + F6⇧ F6
Extract methodCtrl + Alt + M⌘ ⌥ M
Extract variableCtrl + Alt + V⌘ ⌥ V
Extract constantCtrl + Alt + C⌘ ⌥ C
InlineCtrl + Alt + N⌘ ⌥ N
Change signatureCtrl + F6⌘ F6
MoveF6F6

Run & Debug #

ActionWindows / LinuxmacOS
RunShift + F10⌃ R
DebugShift + F9⌃ D
Choose config and runAlt + Shift + F10⌃ ⌥ R
StopCtrl + F2⌘ F2
Build projectCtrl + F9⌘ F9
Toggle breakpointCtrl + F8⌘ F8
Step over / into / outF8 / F7 / Shift + F8F8 / F7 / ⇧ F8
ResumeF9⌘ ⌥ R
Evaluate expressionAlt + F8⌥ F8

Tool Windows & VCS #

ActionWindows / LinuxmacOS
Project viewAlt + 1⌘ 1
TerminalAlt + F12⌥ F12
Git / VCS popupAlt + `⌃ V
CommitCtrl + K⌘ K
PushCtrl + Shift + K⌘ ⇧ K
Update project (pull)Ctrl + T⌘ T
Hide all tool windowsCtrl + Shift + F12⌘ ⇧ F12
Back to the editorEscEsc
SettingsCtrl + Alt + S⌘ ,

Tips #

  • Forgot a shortcut? Find Action → type the name. The shortcut is shown next to it.
  • Help → Keyboard Shortcuts PDF opens the official reference card for your OS.
  • Local History (right-click a file → Local History) can recover changes that were never committed.