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.
Nothing matches - try fewer letters, or an action word like "close" or "split".
Or stop looking them up. Put the JetBrains IDEs commands you actually use on your Super key with Super Shortcuts. Hold it to see what you've added for the app you're in, and tap a key to run one.
Download for macOSSearch & find8
| Shortcut | Action |
|---|---|
| Shift, then Shift⇧⇧ | Search Everywhere - files, classes, symbols, actions, settings |
| Command Shift A⌘⇧A | Find Action - run any command by name |
| Command Shift O⌘⇧O | Go to file |
| Command Option O⌘⌥O | Go to symbol |
| Command E⌘E | Recent files |
| Command F12⌘F12 | File structure popup |
| Command F⌘F | Find in the current file |
| Command Shift F⌘⇧F | Find in files |
Code navigation9
| Shortcut | Action |
|---|---|
| Command B⌘B | Go to declaration or usages |
| Command Option B⌘⌥B | Go to implementations |
| Option F7⌥F7 | Find usages |
| Command L⌘L | Go to line and column |
| Command [⌘[ | Navigate back |
| Command ]⌘] | Navigate forward |
| Command Shift Delete⌘⇧⌫ | Jump to the last edit location |
| Control Tab⌃⇥ | Switcher - jump between open files and tool windows |
| F2F2 | Next highlighted error |
Editing & code assistance12
| Shortcut | Action |
|---|---|
| Option Return⌥↩ | Show context actions and quick-fixes |
| Control Space⌃Space | Basic code completion |
| Command Shift Return⌘⇧↩ | Complete the current statement |
| F1F1 | Quick documentation |
| Command N⌘N | Generate code (constructors, getters, overrides) |
| Command Option L⌘⌥L | Reformat code |
| Command /⌘/ | Toggle line comment |
| Command D⌘D | Duplicate line or selection |
| Command Delete⌘⌫ | Delete line |
| Option Shift Up Arrow⌥⇧↑ | Move line up |
| Option Shift Down Arrow⌥⇧↓ | Move line down |
| Command Shift V⌘⇧V | Paste from clipboard history |
Selection & multiple carets5
| Shortcut | Action |
|---|---|
| Option Up Arrow⌥↑ | Extend selection by code construct |
| Option Down Arrow⌥↓ | Shrink selection |
| Control G⌃G | Add selection for the next occurrence |
| Command Control G⌘⌃G | Select all occurrences |
| Command Shift 8⌘⇧8 | Toggle column selection mode |
Refactoring6
| Shortcut | Action |
|---|---|
| Control T⌃T | Refactor This - list refactorings for the code at the caret |
| Shift F6⇧F6 | Rename |
| Command F6⌘F6 | Change signature |
| Command Option M⌘⌥M | Extract method |
| Command Option V⌘⌥V | Introduce variable |
| Command Forward Delete⌘⌦ | Safe delete |
Run & debug12
| Shortcut | Action |
|---|---|
| Control, then Control⌃⌃ | Run Anything |
| Control R⌃R | Run the context configuration |
| Control D⌃D | Debug the context configuration |
| Command F2⌘F2 | Stop |
| Command F9⌘F9 | Build the project |
| Command F8⌘F8 | Toggle a line breakpoint |
| Command Shift F8⌘⇧F8 | View all breakpoints |
| F8F8 | Step over |
| F7F7 | Step into |
| Shift F8⇧F8 | Step out |
| Option F9⌥F9 | Run to cursor |
| Option F8⌥F8 | Evaluate expression |
Version control & tool windows8
| Shortcut | Action |
|---|---|
| Control V⌃V | VCS operations popup |
| Command K⌘K | Commit |
| Command Shift K⌘⇧K | Push |
| Command 1⌘1 | Show the Project tool window |
| Option F12⌥F12 | Show the Terminal |
| Shift Escape⇧⎋ | Hide the active tool window |
| Escape⎋ | Return 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.