JetBrains IDEs keyboard shortcuts for Mac

60 shortcuts · Updated

These are the default JetBrains IDE keyboard shortcuts on a Mac, curated from JetBrains' official macOS keymap reference for IntelliJ IDEA; the PyCharm keymap reference lists the same macOS defaults. The Mac keymap is not the Windows one with Cmd swapped in - Settings is Cmd comma instead of Ctrl Alt S, Generate is Cmd N instead of Alt Insert, and Refactor This is Ctrl T. If you learn two, make them Find Action (Cmd Shift A) and Search Everywhere (press Shift twice), which reach every other command by name.

60 shortcuts

Search & find8

ShortcutAction
Shift, then ShiftSearch Everywhere - files, classes, symbols, actions, settings
Command Shift AFind Action - run any command by name
Command Shift OGo to file
Command Option OGo to symbol
Command ERecent files
Command F12File structure popup
Command FFind in the current file
Command Shift FFind in files

Code navigation9

ShortcutAction
Command BGo to declaration or usages
Command Option BGo to implementations
Option F7Find usages
Command LGo to line and column
Command [Navigate back
Command ]Navigate forward
Command Shift DeleteJump to the last edit location
Control TabSwitcher - jump between open files and tool windows
F2Next highlighted error

Editing & code assistance12

ShortcutAction
Option ReturnShow context actions and quick-fixes
Control SpaceBasic code completion
Command Shift ReturnComplete the current statement
F1Quick documentation
Command NGenerate code (constructors, getters, overrides)
Command Option LReformat code
Command /Toggle line comment
Command DDuplicate line or selection
Command DeleteDelete line
Option Shift Up ArrowMove line up
Option Shift Down ArrowMove line down
Command Shift VPaste from clipboard history

Selection & multiple carets5

ShortcutAction
Option Up ArrowExtend selection by code construct
Option Down ArrowShrink selection
Control GAdd selection for the next occurrence
Command Control GSelect all occurrences
Command Shift 8Toggle column selection mode

Refactoring6

ShortcutAction
Control TRefactor This - list refactorings for the code at the caret
Shift F6Rename
Command F6Change signature
Command Option MExtract method
Command Option VIntroduce variable
Command Forward DeleteSafe delete

Run & debug12

ShortcutAction
Control, then ControlRun Anything
Control RRun the context configuration
Control DDebug the context configuration
Command F2Stop
Command F9Build the project
Command F8Toggle a line breakpoint
Command Shift F8View all breakpoints
F8Step over
F7Step into
Shift F8Step out
Option F9Run to cursor
Option F8Evaluate expression

Version control & tool windows8

ShortcutAction
Control VVCS operations popup
Command KCommit
Command Shift KPush
Command 1Show the Project tool window
Option F12Show the Terminal
Shift EscapeHide the active tool window
EscapeReturn focus to the editor
Command ,Open Settings

Curated from the official JetBrains' predefined macOS keymap reference (IntelliJ IDEA). Defaults only - shortcuts you've remapped will differ.

Frequently asked questions

How do I see or change keyboard shortcuts in a JetBrains IDE on a Mac?

Open Settings with ⌘, and select Keymap. You can modify a copy of any predefined keymap or assign shortcuts to actions that have none. For a printable list of the defaults, choose Help | Keyboard Shortcuts PDF.

What is the difference between Search Everywhere and Find Action?

Search Everywhere (press ⇧ twice) finds any file, action, symbol, tool window, or setting in the IDE, your project, and the current Git repository. Find Action (⌘⇧A) searches only commands and settings, so it is the faster way to run something whose shortcut you do not know.

Why don't F-key shortcuts like F8 or Shift F6 work on my Mac?

Many debugging and refactoring shortcuts use function keys, and on a Mac the top row controls brightness and volume by default. JetBrains advises enabling function keys and checking for conflicts with global macOS shortcuts: hold fn while pressing the key, or turn on Use F1, F2, etc. keys as standard function keys in macOS System Settings under Keyboard.

Why do some shortcuts in older tutorials not match my IDE?

JetBrains ships more than one Mac keymap. The default macOS keymap uses ⌃T for Refactor This and ⌥↑ to extend the selection, while the IntelliJ IDEA Classic (macOS) keymap uses ⌘⌥⇧T and ⌘W. Check which one is selected under Settings, Keymap.

Mac keyboard guides

Shortcuts for other apps

Your download is starting.

  1. 1
    Open the file and drag Super Shortcuts to Applications.
  2. 2
    Launch it and click Open if macOS asks.
  3. 3
    Turn on Accessibility when it asks. That's how it presses keys and clicks menus for you.

Didn't start? Download again