Skip to content
IntelliJ IDEA icon

IntelliJ IDEA shortcuts for Mac

113 shortcuts · 9 categories

IntelliJ IDEA is a robust IDE offering smart coding assistance, deep intelligence, and automation features for efficient and quality-driven Java development. Download IntelliJ IDEA

Hover a shortcut to add it to Pie Menu

Mac keyboard shortcuts for IntelliJ IDEA

General Shortcuts

  • Open Corresponding Tool Window⌘ (command) + 0..9 Add →
  • Save All⌘ (command) + s Add →
  • Synchronize⌘ (command) + ⌥ (option) + y Add →
  • Toggle Maximize Editor⌘ (command) + ⇧ (shift) + f12 Add →
  • Find Action⌘ (command) + ⇧ (shift) + a Add →
  • Open Setting Dialog⌘ (command) + , Add →
  • Open Project Structure Dialog⌘ (command) + ; Add →
  • Quick Switch Current Scheme⌃ (control) + ` Add →
  • Inspect Current file with Current file⌥ (option) + ⇧ (shift) + i Add →

Debugging Shortcuts

  • Run to Cursor⌥ (option) + f9 Add →
  • Smart Step In/Step Out⇧ (shift) + f7 Add →
  • Step Overf8 Add →
  • Step Intof7 Add →
  • Evaluate Expression⌥ (option) + f8 Add →
  • Switch Breakpoint⌘ (command) + f8 Add →
  • View Breakpoints⌘ (command) + ⇧ (shift) + f8 Add →
  • Resume Program⌘ (command) + ⌥ (option) + r Add →

Editing Shortcuts

  • Basic Code Completion⌃ (control) + spacebar Add →
  • Smart Code Completion⌃ (control) + ⇧ (shift) + spacebar Add →
  • Quick Documentation Setup⌃ (control) + j Add →
  • External document⇧ (shift) + f1 Add →
  • Complete Statement⌘ (command) + ⇧ (shift) + ↵ Add →
  • Parameter Information⌘ (command) + p Add →
  • Override Methods⌃ (control) + o Add →
  • Generate Code⌘ (command) + n Add →
  • Generate Code⌃ (control) + ↵ Add →
  • Implement Methods⌃ (control) + i Add →
  • Surround With⌘ (command) + ⌥ (option) + t Add →
  • Comment/Uncomment with Line Comment⌘ (command)Add →
  • Comment/Uncomment with Block Comment⌘ (command) + ⌥ (option)Add →
  • Extend Selection⌥ (option) + ↑ Add →
  • Shrink Selection⌥ (option) + ↓ Add →
  • Context Information⌃ (control) + ⇧ (shift) + q Add →
  • Show Intention Actions and Quick Fixes⌥ (option) + ↵ Add →
  • Reformat Code⌘ (command) + ⌥ (option) + l Add →
  • Duplicate Current Line⌘ (command) + d Add →
  • Cut/Copy/Paste Current line to Clipboard⌘ (command) + x Add →
  • Oraganize Import⌃ (control) + ⌥ (option) + o Add →
  • AutoIndent Lines⌃ (control) + ⌥ (option) + i Add →
  • Delete line at caret⌘ (command) + ⌫ Add →
  • Start New line⇧ (shift) + ↵ Add →
  • Smart line join⌃ (control) + ⇧ (shift) + j Add →
  • Smart line split⌘ (command) + ↵ Add →
  • Close Active Editor Tab⌘ (command) + w Add →
  • Expand All⌘ (command) + ⇧ (shift)Add →
  • Collapse All⌘ (command) + ⇧ (shift) + - Add →
  • Expand/Collapse Code block⌘ (command)Add →
  • Delete to end word⌥ (option) + ⌫ Add →
  • Delete to word start⌥ (option) + ⌫ Add →
  • Select till code block end⌘ (command) + ⇧ (shift) + ] Add →
  • Select till code block start⌘ (command) + ⇧ (shift) + [ Add →
  • Switch case for Word at Caret or Selected block⌘ (command) + ⇧ (shift) + u Add →

Find and Replace Shortcuts

  • Find⌘ (command) + f Add →
  • Replace⌘ (command) + r Add →
  • Search Everywheredouble shift Add →
  • Find Next⌘ (command) + g Add →
  • Find Previous⌘ (command) + ⇧ (shift) + g Add →
  • Find in Path⌘ (command) + ⇧ (shift) + f Add →
  • Replace in Path⌘ (command) + ⇧ (shift) + r Add →
  • Select Next Occurance⌃ (control) + g Add →
  • Select All Occurance⌘ (command) + ⌃ (control) + g Add →
  • Unselect Occurance⌃ (control) + g Add →

Refactoring

  • Copyf5 Add →
  • Movef6 Add →
  • Rename⇧ (shift) + f6 Add →
  • Inline⌘ (command) + ⌥ (option) + n Add →
  • Change Signature⌘ (command) + f6 Add →
  • Refactor this⌃ (control) + t Add →
  • Safe Delete⌘ (command) + ⌫ Add →
  • Extract Method⌘ (command) + ⌥ (option) + m Add →
  • Extract Field⌘ (command) + ⌥ (option) + f Add →
  • Extract parameter⌘ (command) + ⌥ (option) + p Add →
  • Extract Constant⌘ (command) + ⌥ (option) + c Add →
  • Extract Variable⌘ (command) + ⌥ (option) + v Add →

Usage Shortcuts

  • Find Usage in File⌘ (command) + f7 Add →
  • Find Usage⌥ (option) + f7 Add →
  • Highlight Usage in File⌘ (command) + ⇧ (shift) + f7 Add →
  • Show Usage⌘ (command) + ⌥ (option) + f7 Add →

VCS/Local History

  • VCS Quick Popup⌃ (control) + v Add →
  • Commit Project to VCS⌘ (command) + k Add →
  • Update Project from VCS⌘ (command) + t Add →
  • Push Commits⌘ (command) + ⇧ (shift) + k Add →

Live Templates

  • Insert Live Template⌘ (command) + j Add →
  • Surround with Live Template⌘ (command) + ⌥ (option) + j Add →

Navigation Shortcuts

  • Go to Class⌘ (command) + o Add →
  • Go to File⌘ (command) + ⇧ (shift) + o Add →
  • Go to Symbol⌘ (command) + ⌥ (option) + o Add →
  • Go back to Previous tool windowf12 Add →
  • Go to Editoresc Add →
  • Hide Active/Last Active Window⇧ (shift) + esc Add →
  • Go to Line⌘ (command) + l Add →
  • Recent files Popup⌘ (command) + e Add →
  • Select current file/Symbol in any View⌥ (option) + f1 Add →
  • Go to Next/Previous Tab⌃ (control) + ← Add →
  • Go to Type Declaration⌃ (control) + ⇧ (shift) + b Add →
  • Navigate back/forward⌘ (command) + ⌥ (option) + ← Add →
  • Go to last edit location⌘ (command) + ⇧ (shift) + ⌫ Add →
  • Go to super method/super class⌘ (command) + u Add →
  • Type Hierarchy⌃ (control) + h Add →
  • Method Hierarchy⌘ (command) + ⇧ (shift) + h Add →
  • Toggle Bookmarkf3 Add →
  • Toggle Bookmark with Mnemonic⌥ (option) + f3 Add →
  • Show Bookmarks⌘ (command) + f3 Add →
  • Go to Numbered Bookmark⌃ (control) + 0..9 Add →
  • Show Navigation bar⌥ (option) + home Add →
  • Edit Sourcef4 Add →
  • View Source⌘ (command) + ↓ Add →
  • Call Hierarchy⌃ (control) + ⌥ (option) + h Add →
  • File Structure Popup⌘ (command) + f12 Add →
  • Move to code block end/start⌘ (command) + ] Add →
  • Go to Declaration⌘ (command) + b Add →
  • Go to Previous/Next Method⌃ (control) + ↑ Add →
  • Open Quick Definition Lookup⌘ (command) + y Add →

Download Keyboard Cheat Sheet for IntelliJ IDEA for Mac

Do you want all keyboard shortcuts for IntelliJ IDEA in one pdf?

Cheat sheet

Community shortcuts for IntelliJ IDEA

Be the first to share — open Pie Menu → IntelliJ IDEA → Share Config

View community page →
Pie Menu

Get started with Pie Menu today.

The convenience of shortcuts without the memorization!

FAQ

What are the most useful IntelliJ IDEA shortcuts?

The most essential IntelliJ IDEA shortcuts include Cmd+Shift+A to find any action, Cmd+N to generate code (getters, setters, constructors), and Cmd+B or Cmd+Click to go to a declaration. Use Cmd+E for recent files, Cmd+Shift+O to find any file by name, and Double Shift to search everywhere. Press Cmd+/ to comment/uncomment code, Ctrl+Space for code completion, and Shift+F6 to rename symbols across the project.

How do I navigate code faster in IntelliJ IDEA?

Press Cmd+B to jump to a method or variable declaration, Cmd+Option+B to go to its implementation, and Cmd+U to navigate to a super method. Use Cmd+[ and Cmd+] to move back and forward through navigation history, like a browser. Press Cmd+F12 to open the file structure popup and type to jump to any method. Use Cmd+Shift+Backspace to jump to the last edit location, and Cmd+G to go to a specific line number.

How do I refactor and debug in IntelliJ IDEA?

For refactoring, press Shift+F6 to rename, Cmd+Option+M to extract a method, Cmd+Option+V to extract a variable, and Cmd+Option+C to extract a constant. While debugging, press Ctrl+D to start debugging, Cmd+F8 to toggle a breakpoint, F8 to step over, F7 to step into, and Shift+F8 to step out. Use Option+F8 to evaluate an expression at the current breakpoint, and Cmd+F2 to stop the debugger.

IntelliJ IDEA keyboard shortcuts not working - how to fix?

If IntelliJ IDEA shortcuts aren't working, go to IntelliJ IDEA > Settings > Keymap and verify you're using the macOS keymap (not Windows or Linux). Plugin conflicts can override default shortcuts — try disabling recently installed plugins and restarting. Also check that macOS hasn't intercepted the shortcuts in System Settings > Keyboard > Keyboard Shortcuts. Use Help > Find Action (Cmd+Shift+A) to search for an action and see its current binding if a specific shortcut isn't responding.