Keyboard Shortcuts: macOS Keymap
IntelliJ IDEA's top keyboard shortcuts
Basic editing
Cut | ⌘X |
Copy | ⌘C |
Paste | ⌘V |
Paste as Plain Text | ⌥⇧⌘V |
Paste from History... | ⇧⌘V |
Duplicate Line or Selection | ⌘D |
Copy Paths | ⇧⌘C |
Copy Reference | ⌥⇧⌘C |
Save All | ⌘S |
Undo | ⌘Z |
Redo | ⇧⌘Z |
Indent Selection | ⇥ |
Unindent Line or Selection | ⇧⇥ |
Start New Line | ⇧⏎ |
Start New Line Before Current | ⌥⌘⏎ |
Delete Line | ⌘⌫ |
Toggle Case | ⇧⌘U |
Scratch File | ⇧⌘N |
Open source in new window | ⇧F4 |
Caret navigation
Move Caret to Previous Word | ⌥← |
Move Caret to Next Word | ⌥→ |
Move Caret to Line Start | ↖ |
Move Caret to Line End | ↘ |
Move Caret to Matching Brace | ⌃M |
Move Caret to Code Block Start | ⌥⌘[ |
Move Caret to Code Block End | ⌥⌘] |
Next Method | N/A |
Previous Method | ⌃↑ |
Move Caret to Page Top | ⌘⇞ |
Move Caret to Page Bottom | ⌘⇟ |
Page Up | ⇞ |
Page Down | ⇟ |
Move Caret to Text Start | ⌘↖ |
Move Caret to Text End | ⌘↘ |
Select text
Select All | ⌘A |
Left with Selection | ⇧← |
Right with Selection | ⇧→ |
Move Caret to Previous Word with Selection | ⌥⇧← |
Move Caret to Next Word with Selection | ⌥⇧→ |
Move Caret to Line Start with Selection | ⇧↖ |
Move Caret to Line End with Selection | ⇧↘ |
Up with Selection | ⇧↑ |
Down with Selection | ⇧↓ |
Move Caret to Code Block Start with Selection | ⌥⇧⌘[ |
Move Caret to Code Block End with Selection | ⌥⇧⌘] |
Move Caret to Page Top with Selection | ⇧⌘⇞ |
Move Caret to Page Bottom with Selection | ⇧⌘⇟ |
Page Up with Selection | ⇧⇞ |
Page Down with Selection | ⇧⇟ |
Move Caret to Text Start with Selection | ⇧⌘↖ |
Move Caret to Text End with Selection | ⇧⌘↘ |
Extend Selection | ⌥↑ |
Shrink Selection | ⌥↓ |
Multiple carets and selection ranges
Add/Remove Caret | ⌥⇧Click |
Toggle Column Selection Mode | ⇧⌘8 |
Clone Caret Above | Double ⌥ + Up |
Clone Caret Below | Double ⌥ + Down |
Add Caret to Each Line in Selection | ⌥⇧G |
Add Selection for Next Occurrence | ⌃G |
Select All Occurrences | ⌃⌘G |
Deselect Last Occurrence | ⌃⇧G |
Create Rectangular Selection | ⌥⇧Middle-Click |
Drag to Create Rectangular Selection | ⌥Click |
Drag to Create Multiple Rectangular Selections | ⌥⇧⌘Click |
Coding assistance
Show Intention Actions | ⌥⏎ |
Basic Completion | ⌃Space |
Type-Matching Completion | ⌃⇧Space |
Second Basic Completion | ⌃⌥Space |
Complete Current Statement | ⇧⌘⏎ |
Reformat Code | ⌥⌘L |
Parameter Info | ⌘P |
Quick Documentation | F1 |
Move Statement Up | ⇧⌘↑ |
Move Statement Down | ⇧⌘↓ |
Move Element Left | ⌥⇧⌘← |
Move Statement Right | ⌥⇧⌘→ |
Move Line Up | ⌥⇧↑ |
Move Line Down | ⌥⇧↓ |
Comment with Line Comment | ⌘/ |
Comment with Block Comment | ⌥⌘/ |
Generate... | ⌘N |
Context navigation
Find everything
Search Everywhere | Double ⇧ |
Find... | ⌘F |
Find Next / Move to Next Occurrence | ⌘G |
Find Previous / Move to Previous Occurrence | ⇧⌘G |
Replace... | ⌘R |
Find in Files... | ⇧⌘F |
Replace in Files... | ⇧⌘R |
Next Occurrence of the Word at Caret | N/A |
Go to File... | ⇧⌘O |
File Structure | ⌘F12 |
Go to Symbol... | ⌥⌘O |
Find Action... | ⇧⌘A |
Navigate from symbols
Code analysis
Show Intention Actions | ⌥⏎ |
Next Highlighted Error | F2 |
Previous Highlighted Error | ⇧F2 |
Run Inspection by Name... | ⌥⇧⌘I |
Show Problems window | ⌘6 |
Build, Run, Debug
Build Project | ⌘F9 |
Rebuild | ⇧⌘F9 |
Run Anything | Double ^ |
Run context configuration | ⌃⇧R |
Run... | ⌃⌥R |
Debug context configuration | ⌃D |
Debug... | ⌃⌥D |
Attach to Process... | ⌥⇧F5 |
Stop | ⌘F2 |
Resume Program | ⌥⌘R |
Stop Background Processes... | ⇧⌘F2 |
Step Over | F8 |
Force Step Over | ⌥⇧F8 |
Step Into | F7 |
Smart Step Into | ⇧F7 |
Force Step Into | ⌥⇧F7 |
Step Out | ⇧F8 |
Run To Cursor | ⌥F9 |
Force Run To Cursor | ⌥⌘F9 |
Show Execution Point | ⌥F10 |
Evaluate Expression... | ⌥F8 |
Quick Evaluate Expression | ⌥⌘F8 |
Toggle Line Breakpoint | ⌘F8 |
Toggle Temporary Line Breakpoint | ⌥⇧⌘F8 |
View Breakpoints... | ⇧⌘F8 |
Edit Breakpoint | ⇧⌘F8 |
Show Run window | ⌘4 |
Show Debug window | ⌘5 |
Show Services window | ⌘8 |
Refactorings
Refactor This... | ⌃T |
Rename... | ⇧F6 |
Change Signature... | ⌘F6 |
Inline... | ⌥⌘N |
Move... | F6 |
Extract Method... | ⌥⌘M |
Introduce Field... | ⌥⌘F |
Introduce Parameter... | ⌥⌘P |
Introduce Variable... | ⌥⌘V |
Safe Delete... | ⌘⌦ |
Global VCS actions
Tool Windows
Last modified: 08 March 2021