Keyhab
⇧⇧
IntelliJ IDEA

IntelliJ IDEA Keyboard Shortcuts for Mac

Complete IntelliJ IDEA keyboard shortcuts reference for Mac. Navigation, refactoring, debugging, and productivity tips for Java developers.

Why Master IntelliJ IDEA Shortcuts?

IntelliJ IDEA is the IDE of choice for Java, Kotlin, and many JVM-language developers. JetBrains designed it with deep code intelligence, and the keyboard shortcuts unlock that power. Developers who use shortcuts effectively report being 2-3x faster at common tasks like navigation, refactoring, and debugging.

This guide focuses on Mac keybindings (the default macOS keymap). Windows/Linux equivalents are noted where they differ significantly.

---

Essential Shortcuts — The Top 15

Before diving into categories, here are the shortcuts every IntelliJ user should know from day one:

#ActionMac Shortcut
1Search EverywhereShift, Shift (double tap)
2Find ActionCmd + Shift + A
3Go to FileCmd + Shift + O
4Go to ClassCmd + O
5Go to SymbolCmd + Option + O
6Go to DeclarationCmd + B
7Find UsagesOption + F7
8RenameShift + F6
9Reformat CodeCmd + Option + L
10GenerateCmd + N
11Quick FixOption + Enter
12RunCtrl + R
13DebugCtrl + D
14Toggle BreakpointCmd + F8
15Extend SelectionOption + Up

---

ActionMac Shortcut
Search EverywhereShift, Shift
Go to ClassCmd + O
Go to FileCmd + Shift + O
Go to SymbolCmd + Option + O
Go to LineCmd + L
Go to DeclarationCmd + B
Go to ImplementationCmd + Option + B
Go to Type DeclarationCtrl + Shift + B
Go to Super MethodCmd + U
Navigate BackCmd + [
Navigate ForwardCmd + ]
Recent FilesCmd + E
Recent LocationsCmd + Shift + E
File StructureCmd + F12
Type HierarchyCtrl + H
Call HierarchyCtrl + Option + H
Next/Previous MethodCtrl + Up/Down
Jump to Navigation BarCmd + Up

---

Editing

ActionMac Shortcut
Basic Code CompletionCtrl + Space
Smart Code CompletionCtrl + Shift + Space
Complete StatementCmd + Shift + Enter
Quick DocumentationF1 or Ctrl + J
Parameter InfoCmd + P
Generate CodeCmd + N
Override MethodsCtrl + O
Implement MethodsCtrl + I
Surround WithCmd + Option + T
Comment LineCmd + /
Comment BlockCmd + Option + /
Duplicate LineCmd + D
Delete LineCmd + Backspace
Join LinesCtrl + Shift + J
Move Line Up/DownOption + Shift + Up/Down
Move Statement Up/DownCmd + Shift + Up/Down
Extend SelectionOption + Up
Shrink SelectionOption + Down

---

Search and Replace

ActionMac Shortcut
FindCmd + F
ReplaceCmd + R
Find in PathCmd + Shift + F
Replace in PathCmd + Shift + R
Find NextCmd + G
Find PreviousCmd + Shift + G
Find UsagesOption + F7
Show UsagesCmd + Option + F7
Highlight Usages in FileCmd + Shift + F7

---

Refactoring

IntelliJ is known for its refactoring capabilities. These shortcuts let you restructure code safely.

ActionMac Shortcut
Refactor This (menu)Ctrl + T
RenameShift + F6
Change SignatureCmd + F6
Extract VariableCmd + Option + V
Extract ConstantCmd + Option + C
Extract FieldCmd + Option + F
Extract MethodCmd + Option + M
Extract ParameterCmd + Option + P
InlineCmd + Option + N
MoveF6
Safe DeleteCmd + Delete

---

Debugging

ActionMac Shortcut
RunCtrl + R
DebugCtrl + D
Step OverF8
Step IntoF7
Smart Step IntoShift + F7
Step OutShift + F8
ResumeCmd + Option + R
Toggle BreakpointCmd + F8
View BreakpointsCmd + Shift + F8
Evaluate ExpressionOption + F8
Run to CursorOption + F9

---

Version Control / Git

ActionMac Shortcut
VCS Operations PopupCtrl + V
CommitCmd + K
PushCmd + Shift + K
Update ProjectCmd + T
Show DiffCmd + D (in VCS panel)
RollbackCmd + Option + Z
Show Local Historyvia VCS menu

---

Window and Tool Windows

ActionMac Shortcut
Project Tool WindowCmd + 1
FavoritesCmd + 2
Find Tool WindowCmd + 3
Run Tool WindowCmd + 4
Debug Tool WindowCmd + 5
TerminalOption + F12
Hide All Tool WindowsCmd + Shift + F12
Close Active TabCmd + W
Next/Previous TabCtrl + Right/Left
SwitcherCtrl + Tab

---

Live Templates

Live Templates let you expand abbreviations into code blocks. Some built-in examples:

  • sout + Tab → System.out.println();
  • psvm + Tab → public static void main(String[] args) {}
  • fori + Tab → a standard for loop
  • iter + Tab → an enhanced for loop

You can create custom Live Templates in Settings > Editor > Live Templates.

---

Tips for Learning IntelliJ Shortcuts

  1. Use the Key Promoter X plugin. It shows the shortcut every time you use the mouse for an action that has a shortcut.
  2. Start with Search Everywhere (Shift, Shift). Even if you do not know the shortcut, you can find and execute any action from there.
  3. Practice one category at a time. Focus on navigation shortcuts for a week, then move on to editing, then refactoring.
  4. Use a spaced-repetition tool. Keyhab offers IntelliJ shortcut drills that help you build muscle memory through daily practice.

---

Conclusion

IntelliJ IDEA is an incredibly powerful IDE, and its keyboard shortcuts are the key to unlocking that power. Start with the top 15 shortcuts listed at the top of this guide, then gradually expand your repertoire by category. With consistent practice, you will navigate and refactor code at a speed you never thought possible.

⇧⇧

Learn IntelliJ IDEA shortcuts with quick quizzes

Keyhab quizzes you on 1,050 shortcuts for 15 tools, from Basics to Advanced. Five minutes a day on iPhone or iPad — VSCode (Mac) and Vim Basics are free.

Download free on the App Store

Related