
General Shortcuts
| macOS | Action | |
|---|---|---|
| Command+0..9 | Open Corresponding Tool Window | |
| Command+S | Save All | |
| Command+Option+Y | Synchronize | |
| Command+Shift+F12 | Toggle Maximize Editor | |
| Command+Shift+A | Find Action | |
| Command+, | Open Setting Dialog | |
| Command+; | Open Project Structure Dialog | |
| Ctrl+` | Quick Switch Current Scheme | |
| Option+Shift+I | Inspect Current file with Current file |
Debugging Shortcuts
| macOS | Action | |
|---|---|---|
| Option+F9 | Run to Cursor | |
| Shift+F7/Shift+F8 | Smart Step In/Step Out | |
| F8 | Step Over | |
| F7 | Step Into | |
| Option+F8 | Evaluate Expression | |
| Command+F8 | Switch Breakpoint | |
| Command+Shift+F8 | View Breakpoints | |
| Command+Option+R | Resume Program |
Editing Shortcuts
| macOS | Action | |
|---|---|---|
| Ctrl+Spacebar | Basic Code Completion | |
| Ctrl+Shift+Spacebar | Smart Code Completion | |
| Ctrl+J | Quick Documentation Setup | |
| Command+Click | Brief Info | |
| Shift+F1 | External document | |
| Command+Shift+Enter | Complete Statement | |
| Command+P | Parameter Information | |
| Ctrl+O | Override Methods | |
| Command+N | Generate Code | |
| Ctrl+Enter | Generate Code | |
| Ctrl+I | Implement Methods | |
| Command+Option+T | Surround With | |
| Command+/ | Comment/Uncomment with Line Comment | |
| Command+Option+/ | Comment/Uncomment with Block Comment | |
| Option+Up Arrow | Extend Selection | |
| Option+Down Arrow | Shrink Selection | |
| Ctrl+Shift+Q | Context Information | |
| 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 | |
| Ctrl+Option+O | Oraganize Import | |
| Ctrl+Option+I | AutoIndent Lines | |
| Command+Backspace | Delete line at caret | |
| Shift+Enter | Start New line | |
| Ctrl+Shift+J | Smart line join | |
| Command+Enter | Smart line split | |
| Command+W | Close Active Editor Tab | |
| Command+Shift++ | Expand All | |
| Command+Shift+- | Collapse All | |
| Command++/Command+- | Expand/Collapse Code block | |
| Option+Del | Delete to end word | |
| Option+Backspace | Delete to word start | |
| Command+Shift+] | Select till code block end | |
| Command+Shift+[ | Select till code block start | |
| Command+Shift+U | Switch case for Word at Caret or Selected block |
Find and Replace Shortcuts
| 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 | |
| Ctrl+G | Select Next Occurance | |
| Command+Ctrl+G | Select All Occurance | |
| Ctrl+G | Unselect Occurance |
Refactoring
| macOS | Action | |
|---|---|---|
| F5 | Copy | |
| F6 | Move | |
| Shift+F6 | Rename | |
| Command+Option+N | Inline | |
| Command+F6 | Change Signature | |
| Ctrl+T | Refactor this | |
| Command+Del | Safe Delete | |
| 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 |
Usage Shortcuts
| 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 | |
|---|---|---|
| Ctrl+V | VCS Quick Popup | |
| Command+K | Commit Project to VCS | |
| Command+T | Update Project from VCS | |
| Command+Shift+K | Push Commits |
Live Templates
| macOS | Action | |
|---|---|---|
| Command+J | Insert Live Template | |
| Command+Option+J | Surround with Live Template |
Navigation Shortcuts
| macOS | Action | |
|---|---|---|
| Command+O | Go to Class | |
| Command+Shift+O | Go to File | |
| Command+Option+O | Go to Symbol | |
| F12 | Go back to Previous tool window | |
| Esc | Go to Editor | |
| Shift+Esc | Hide Active/Last Active Window | |
| 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 | |
| Ctrl+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 | |
| F3 | Toggle Bookmark | |
| Option+F3 | Toggle Bookmark with Mnemonic | |
| Command+F3 | Show Bookmarks | |
| Ctrl+0..9 | Go to Numbered Bookmark | |
| Option+Home | Show Navigation bar | |
| F4 | Edit Source | |
| Command+Down Arrow | View Source | |
| Ctrl+Option+H | Call Hierarchy | |
| Command+F12 | File Structure Popup | |
| Command+]/Command+[ | Move to code block end/start | |
| Command+B/Commad+Click | Go to Declaration | |
| Ctrl+Up Arrow/Ctrl+Down Arrow | Go to Previous/Next Method | |
| Command+Y/Command+Spacebar | Open Quick Definition Lookup |