
General Shortcuts
| macOS | Action | |
|---|---|---|
| Command+0...9 | Open Corresponding Tool Window | |
| 2x Shift | Search Everywhere | |
| Command+Shift+F12 | Toggle Maximize Editor | |
| F12 | Go back to Previous Tool Window | |
| Esc | Go to Editor | |
| Shift+Esc | Hide Active or Last Active Window | |
| Command+Tab | Switch Editor Tabs and IDE Tool Windows | |
| Command+W | Close Current Active Tab | |
| Ctrl+` | Quick Switch Current Scheme | |
| Option+Shift+F | Add to Favourites |
Find and Replace
| macOS | Action | |
|---|---|---|
| Command+F | Find | |
| Command+R | Replace | |
| Double Shift | Search Everywhere | |
| Command+G | Find Next | |
| Command+Shift+G | Find Previous | |
| Command+Shift+F | Find in Path | |
| Command+Shift+R | Replace in Path |
Editing Shortcuts
| macOS | Action | |
|---|---|---|
| Ctrl+Spacebar | Basic Code Completion | |
| Command+Shift+Enter | Complete Current Statement | |
| Ctrl+J | Quick Documentation Lookup | |
| Command+Mouse Over | Brief Info | |
| Command+Shift+Enter | Complete Statement | |
| Command+P | Parameter Information | |
| Ctrl+O | Override Methods | |
| Command+N | Generate Code | |
| Option+Shift+Up Arrow/Down Arrow | Move Line(Selection) Up/Down | |
| Command+Option+T | Surround With..(Begin..End etc.) | |
| Command+/ | Comment/Uncomment with Line Comment | |
| Command+Option+/ | Comment/Uncomment with Block Comment | |
| Command+F1 | Show Description of Error or Warning at Caret | |
| Tab | Indent Selected Lines | |
| Shift+Tab | Unindent Selected Lines | |
| Option+Enter | Show Intention Actions and Quick Fixes | |
| Command+Option+L | Reformat Code | |
| Command+D | Duplicate Current Line | |
| Command+X/Command+C/Command+V | Cut/Copy/Paste Current line to Clipboard | |
| Command+Shift+V | Paste from Buffer | |
| Ctrl+Option+I | AutoIndent Lines | |
| Command+Backspace | Delete line at caret | |
| Shift+Enter | Start New line | |
| Option+Enter | Show Intention Actions/Quick-Fixes | |
| Option+Down Arrow | Decrease Current Selection to Previous State | |
| Option+Up Arrow | Select Successively Incresing Code blocks | |
| Command+Shift++ | Expand All | |
| Command+Shift+- | Collapse All | |
| Command++/Command+- | Expand/Collapse Code block | |
| Command+Del | Delete to end word | |
| Command+Backspace | Delete to word start | |
| Command+Shift+Option+] | Select till code block end | |
| Command+Shift+Option+[ | Select till code block start | |
| Shift+Option+U | Toggle Carnel/Snake Case | |
| Command+Shift+U | Switch case for Word at Caret or Selected block |
Code Refactoring
| macOS | Action | |
|---|---|---|
| F5 | Copy | |
| F6 | Move | |
| Shift+F6 | Rename | |
| Command+F6 | Change Signature | |
| Command+Del | Safe Delete | |
| Command+Option+N | Inline | |
| Ctrl+T | Refactor this Quick List | |
| Command+Option+M | Extract Method | |
| Command+Option+F | Extract Field | |
| Command+Option+P | Extract parameter | |
| Command+Option+C | Extract Constant | |
| Command+Option+V | Extract Variable |
Navigation Controls
| macOS | Action | |
|---|---|---|
| Command+O | Go to Class | |
| Command+Shift+O | Go to File | |
| Command+Option+Shift+O | Go to Symbol | |
| F12 | Go back to Previous Tool Window | |
| Esc | Go to Editor | |
| Shift+Esc | Hide Active or Last Active Window | |
| F2 | Next highlighted Error | |
| Shift+F2 | Previous highlighted Error | |
| Command+PgUp | Go to Top of Page | |
| Command+PgDn | Go to Bottom of Page | |
| Command+L | Go to Line | |
| Command+E | Recent files Popup | |
| Option+F1 | Select current file/Symbol in any View | |
| Ctrl+Left Arrow/Ctrl+Right Arrow | Go to Next/Previous Tab | |
| Command+B | Go to Declaration | |
| Command+Shift+B | Go to Type Declaration | |
| Command+Option+Left Arrow/Command+Option+Right Arrow | Navigate back/forward | |
| Command+Shift+Backspace | Go to last edit location | |
| Command+U | Go to super method/super class | |
| Ctrl+H | Type Hierarchy | |
| Command+Shift+H | Method Hierarchy | |
| Ctrl+Option+H | Call Hierarchy | |
| Shift+F6 | Toggle Bookmark | |
| Option+F3 | Toggle Bookmark with Mnemonic | |
| Shift+F3 | Show Bookmarks | |
| Ctral+0..9 | Go to Numbered Bookmark | |
| Command+Up Arrow | Show Navigation bar | |
| Ctrl+Shift+F4 | Close Active Run/Messages | |
| F4 | Edit Source | |
| Command+Down Arrow | View Source | |
| Command+Shift+Option+U | Show Diagram | |
| Command+Option+U | Diagram Popup | |
| Command+F12 | File Structure Popup | |
| Command+]/Command+[ | Move to code block end/start | |
| Ctrl+Up Arrow/Ctrl+Down Arrow | Go to Previous/Next Method | |
| Command+Y | Open Quick Definition Lookup |
Debugging Shortcuts
| macOS | Action | |
|---|---|---|
| Option+F9 | Run to Cursor | |
| Shift+F8 | Step Out | |
| F8 | Step Over | |
| F7 | Step Into | |
| Option+F8 | Evaluate Expression | |
| Command+F8 | Toggle Breakpoint | |
| Command+Shift+F8 | View Breakpoints | |
| F9 | Resume Program |
Compile and Run
| macOS | Action | |
|---|---|---|
| Command+F9 | Build Project | |
| Ctrl+R | Run | |
| Ctrl+D | Debug | |
| Ctrl+Option+R | Select Configuration and Run | |
| Ctrl+Option+D | Select Configuration and Debug | |
| Ctrl+Shift+R | Run Context Configuration from Editor | |
| Ctrl+Shift+D | Debug Context Configuration from Editor |
Usage Search
| macOS | Action | |
|---|---|---|
| Command+F7 | Find Usage in File | |
| Option+F7 | Find Usage | |
| Command+Shift+F7 | Highlight Usage in File | |
| Command+Option+F7 | Show Usage |
VCS/Local History
| macOS | Action | |
|---|---|---|
| Command+K | Commit Project to VCS | |
| Command+T | Update Project from VCS | |
| Option+Shift+C | View Recent Changes | |
| Ctrl+V | VCS Operations Popup |
Live Templates
| macOS | Action | |
|---|---|---|
| Command+J | Insert Live Template | |
| Command+Option+J | Surround with Live Template |