Composer (AI)
| Action | Shortcut |
|---|---|
| Open Composer | ⌘+I |
| Open Composer (fullscreen) | ⇧+⌘+I |
| Toggle Agent mode | ⌘+. |
| Toggle AI model | ⌘+/ |
| Open model selector | ⌥+⌘+/ |
| Accept all changes | ⌘+↩ |
| Reject all changes | ⌘+⌫ |
| Cancel generation | ⌘+⌫ |
| Create new composer | ⌘+N |
| Open composer as bar | ⇧+⌘+K |
| Previous composer | ⌘+[ |
| Next composer | ⌘+] |
| Close composer | ⌘+W |
| Cycle to next message | Tab |
| Cycle to previous message | ⇧+Tab |
| Select previous message | ↑ |
| Open Composer | ⌃+I |
| Open Composer (fullscreen) | ⌃+⇧+I |
| Toggle Agent mode | ⌃+. |
| Toggle AI model | ⌃+/ |
| Open model selector | ⌃+⌥+/ |
| Accept all changes | ⌃+Enter |
| Reject all changes | ⌃+Backspace |
| Cancel generation | ⌃+Backspace |
| Create new composer | ⌃+N |
| Open composer as bar | ⌃+⇧+K |
| Previous composer | ⌃+[ |
| Next composer | ⌃+] |
| Close composer | ⌃+W |
| Cycle to next message | Tab |
| Cycle to previous message | ⇧+Tab |
| Select previous message | ↑ |
Chat (AI)
| Action | Shortcut |
|---|---|
| Open Chat | ⌘+L |
| New Chat | ⇧+⌘+L |
| Open Chat/Composer history | ⌥+⌘+L |
| Submit | ↩ |
| Submit with codebase | ⌘+↩ |
| Add selected code as context | ⌘+L |
| Add code to new chat | ⇧+⌘+L |
| Open Chat | ⌃+L |
| New Chat | ⌃+⇧+L |
| Open Chat/Composer history | ⌃+⌥+L |
| Submit | Enter |
| Submit with codebase | ⌃+Enter |
| Add selected code as context | ⌃+L |
| Add code to new chat | ⌃+⇧+L |
Cmd+K (Inline Edit)
| Action | Shortcut |
|---|---|
| Open inline edit | ⌘+K |
| Toggle input focus | ⇧+⌘+K |
| Apply changes | ⌘+↩ |
| Cancel/delete changes | ⌘+⌫ |
| Ask quick question | ⌥+↩ |
Tab (AI Completion)
| Action | Shortcut |
|---|---|
| Accept suggestion | Tab |
| Reject suggestion | Esc |
| Partial accept (word) | ⌘+→ |
| Accept next line | ⌘+↓ |
| Accept suggestion | Tab |
| Reject suggestion | Esc |
| Partial accept (word) | ⌃+→ |
| Accept next line | ⌃+↓ |
Context (@-Symbols)
| Action | Shortcut |
|---|---|
| Reference file | @filename |
| Reference function | @functionName |
| Reference variable | @variableName |
| Search codebase | @codebasequery |
| Search web | @webquery |
| Reference docs | @docs |
| Add folder context | #foldername |
| Select multiple files | ⌘+P |
| Reference file | @filename |
| Reference function | @functionName |
| Reference variable | @variableName |
| Search codebase | @codebasequery |
| Search web | @webquery |
| Reference docs | @docs |
| Add folder context | #foldername |
| Select multiple files | ⌃+P |
General
| Action | Shortcut |
|---|---|
| Command palette | ⇧+⌘+P |
| Quick file open | ⌘+P |
| Go to symbol | ⌘+T |
| Open Cursor settings | ⇧+⌘+J |
| Open settings | ⌘or |
| Open keyboard shortcuts | ⌘+K+⌘+S |
| Toggle sidebar | ⌘+B |
| Toggle terminal | ⌃+` |
| New window | ⇧+⌘+N |
| Close window | ⇧+⌘+W |
| Zoom in | ⌘++ |
| Zoom out | ⌘+- |
| Reset zoom | ⌘+0 |
| Command palette | ⌃+⇧+P |
| Quick file open | ⌃+P |
| Go to symbol | ⌃+T |
| Open Cursor settings | ⌃+⇧+J |
| Open settings | ⌃or |
| Open keyboard shortcuts | ⌃+K+⌃+S |
| Toggle sidebar | ⌃+B |
| Toggle terminal | ⌃+` |
| New window | ⌃+⇧+N |
| Close window | ⌃+⇧+W |
| Zoom in | ⌃++ |
| Zoom out | ⌃+- |
| Reset zoom | ⌃+0 |
File
| Action | Shortcut |
|---|---|
| New file | ⌘+N |
| Open file | ⌘+O |
| Save | ⌘+S |
| Save as | ⇧+⌘+S |
| Save all | ⌥+⌘+S |
| Close tab | ⌘+W |
| Close all tabs | ⌘+K+W |
| Reopen closed tab | ⇧+⌘+T |
| New file | ⌃+N |
| Open file | ⌃+O |
| Save | ⌃+S |
| Save as | ⌃+⇧+S |
| Save all | ⌃+⌥+S |
| Close tab | ⌃+W |
| Close all tabs | ⌃+K+W |
| Reopen closed tab | ⌃+⇧+T |
Edit
| Action | Shortcut |
|---|---|
| Undo | ⌘+Z |
| Redo | ⇧+⌘+Z |
| Cut | ⌘+X |
| Copy | ⌘+C |
| Paste | ⌘+V |
| Delete line | ⇧+⌘+K |
| Cut line | ⌘+X |
| Copy line | ⌘+C |
| Move line up | ⌥+↑ |
| Move line down | ⌥+↓ |
| Duplicate line up | ⌥+⇧+↑ |
| Duplicate line down | ⌥+⇧+↓ |
| Insert line below | ⌘+↩ |
| Insert line above | ⇧+⌘+↩ |
| Toggle line comment | ⌘+/ |
| Toggle block comment | ⌥+⇧+A |
| Indent line | ⌘+] |
| Outdent line | ⌘+[ |
| Join lines | ⌃+J |
| Undo | ⌃+Z |
| Redo | ⌃+⇧+Z |
| Cut | ⌃+X |
| Copy | ⌃+C |
| Paste | ⌃+V |
| Delete line | ⌃+⇧+K |
| Cut line | ⌃+X |
| Copy line | ⌃+C |
| Move line up | ⌥+↑ |
| Move line down | ⌥+↓ |
| Duplicate line up | ⌥+⇧+↑ |
| Duplicate line down | ⌥+⇧+↓ |
| Insert line below | ⌃+Enter |
| Insert line above | ⌃+⇧+Enter |
| Toggle line comment | ⌃+/ |
| Toggle block comment | ⌥+⇧+A |
| Indent line | ⌃+] |
| Outdent line | ⌃+[ |
| Join lines | ⌃+J |
Selection
| Action | Shortcut |
|---|---|
| Select all | ⌘+A |
| Select line | ⌘+L |
| Expand selection | ⌃+⇧+⌘+→ |
| Shrink selection | ⌃+⇧+⌘+← |
| Select to line start | ⇧+⌘+← |
| Select to line end | ⇧+⌘+→ |
| Select word | ⌘+D |
| Select all occurrences | ⇧+⌘+L |
| Select all | ⌃+A |
| Select line | ⌃+L |
| Expand selection | ⌃+⇧+⌥+→ |
| Shrink selection | ⌃+⇧+⌥+← |
| Select to line start | ⇧+Home |
| Select to line end | ⇧+End |
| Select word | ⌃+D |
| Select all occurrences | ⌃+⇧+L |
Multi-Cursor
| Action | Shortcut |
|---|---|
| Add cursor | ⌥Click |
| Add cursor above | ⌥+⌘+↑ |
| Add cursor below | ⌥+⌘+↓ |
| Select next occurrence | ⌘+D |
| Undo last cursor | ⌘+U |
| Add cursors to line ends | ⌥+⇧+I |
| Column select | ⌥+⇧Drag |
| Add cursor | ⌥Click |
| Add cursor above | ⌃+⌥+↑ |
| Add cursor below | ⌃+⌥+↓ |
| Select next occurrence | ⌃+D |
| Undo last cursor | ⌃+U |
| Add cursors to line ends | ⌥+⇧+I |
| Column select | ⌥+⇧Drag |
Navigation
| Action | Shortcut |
|---|---|
| Go to line | ⌃+G |
| Go to file | ⌘+P |
| Go to symbol in file | ⇧+⌘+O |
| Go to symbol in workspace | ⌘+T |
| Go to definition | F12 |
| Peek definition | ⌥+F12 |
| Go to type definition | ⌘+F12 |
| Go to implementation | ⌘+F12 |
| Find all references | ⇧+F12 |
| Go to bracket | ⇧+⌘+\ |
| Navigate back | ⌃+- |
| Navigate forward | ⌃+⇧+- |
| Next error | F8 |
| Previous error | ⇧+F8 |
| Go to line | ⌃+G |
| Go to file | ⌃+P |
| Go to symbol in file | ⌃+⇧+O |
| Go to symbol in workspace | ⌃+T |
| Go to definition | F12 |
| Peek definition | ⌥+F12 |
| Go to type definition | ⌃+F12 |
| Go to implementation | ⌃+F12 |
| Find all references | ⇧+F12 |
| Go to bracket | ⌃+⇧+\ |
| Navigate back | ⌥+← |
| Navigate forward | ⌥+→ |
| Next error | F8 |
| Previous error | ⇧+F8 |
Search & Replace
| Action | Shortcut |
|---|---|
| Find | ⌘+F |
| Find and replace | ⌥+⌘+F |
| Find in files | ⇧+⌘+F |
| Replace in files | ⇧+⌘+H |
| Find next | ⌘+G |
| Find previous | ⇧+⌘+G |
| Toggle case sensitive | ⌥+⌘+C |
| Toggle regex | ⌥+⌘+R |
| Toggle whole word | ⌥+⌘+W |
| Find | ⌃+F |
| Find and replace | ⌃+H |
| Find in files | ⌃+⇧+F |
| Replace in files | ⌃+⇧+H |
| Find next | F3 |
| Find previous | ⇧+F3 |
| Toggle case sensitive | ⌥+C |
| Toggle regex | ⌥+R |
| Toggle whole word | ⌥+W |
Code Actions
| Action | Shortcut |
|---|---|
| Quick fix | ⌘+. |
| Trigger suggestion | ⌃+Space |
| Trigger parameter hints | ⇧+⌘+Space |
| Format document | ⌥+⇧+F |
| Format selection | ⌘+K+⌘+F |
| Rename symbol | F2 |
| Show hover | ⌘+K+⌘+I |
| Organize imports | ⌥+⇧+O |
| Quick fix | ⌃+. |
| Trigger suggestion | ⌃+Space |
| Trigger parameter hints | ⌃+⇧+Space |
| Format document | ⌥+⇧+F |
| Format selection | ⌃+K+⌃+F |
| Rename symbol | F2 |
| Show hover | ⌃+K+⌃+I |
| Organize imports | ⌥+⇧+O |
Folding
| Action | Shortcut |
|---|---|
| Fold | ⌥+⌘+[ |
| Unfold | ⌥+⌘+] |
| Fold all | ⌘+K+⌘+0 |
| Unfold all | ⌘+K+⌘+J |
| Fold level 1 | ⌘+K+⌘+1 |
| Fold level 2 | ⌘+K+⌘+2 |
| Toggle fold | ⌘+K+⌘+L |
| Fold | ⌃+⇧+[ |
| Unfold | ⌃+⇧+] |
| Fold all | ⌃+K+⌃+0 |
| Unfold all | ⌃+K+⌃+J |
| Fold level 1 | ⌃+K+⌃+1 |
| Fold level 2 | ⌃+K+⌃+2 |
| Toggle fold | ⌃+K+⌃+L |
View
| Action | Shortcut |
|---|---|
| Toggle panel | ⌘+J |
| Toggle problems | ⇧+⌘+M |
| Toggle output | ⇧+⌘+U |
| Toggle debug console | ⇧+⌘+Y |
| Explorer | ⇧+⌘+E |
| Search | ⇧+⌘+F |
| Source control | ⌃+⇧+G |
| Run and debug | ⇧+⌘+D |
| Extensions | ⇧+⌘+X |
| Toggle panel | ⌃+J |
| Toggle problems | ⌃+⇧+M |
| Toggle output | ⌃+⇧+U |
| Toggle debug console | ⌃+⇧+Y |
| Explorer | ⌃+⇧+E |
| Search | ⌃+⇧+F |
| Source control | ⌃+⇧+G |
| Run and debug | ⌃+⇧+D |
| Extensions | ⌃+⇧+X |
Editor Layout
| Action | Shortcut |
|---|---|
| Split editor right | ⌘+\ |
| Split editor down | ⌘+K+⌘+\ |
| Focus 1st editor group | ⌘+1 |
| Focus 2nd editor group | ⌘+2 |
| Focus 3rd editor group | ⌘+3 |
| Move editor left | ⌘+K+⇧+⌘+← |
| Move editor right | ⌘+K+⇧+⌘+→ |
| Split editor right | ⌃+\ |
| Split editor down | ⌃+K+⌃+\ |
| Focus 1st editor group | ⌃+1 |
| Focus 2nd editor group | ⌃+2 |
| Focus 3rd editor group | ⌃+3 |
| Move editor left | ⌃+K+⌃+⇧+← |
| Move editor right | ⌃+K+⌃+⇧+→ |
Tabs
| Action | Shortcut |
|---|---|
| Next tab | ⌃+Tab |
| Previous tab | ⌃+⇧+Tab |
| Pin tab | ⌘+K+⇧+↩ |
| Next tab | ⌃+Tab |
| Previous tab | ⌃+⇧+Tab |
| Pin tab | ⌃+K+⇧+Enter |
Terminal
| Action | Shortcut |
|---|---|
| New terminal | ⌃+⇧+` |
| Split terminal | ⌘+\ |
| Kill terminal | ⌘+K |
| Clear terminal | ⌘+K |
| Scroll up | ⌘+↑ |
| Scroll down | ⌘+↓ |
| New terminal | ⌃+⇧+` |
| Split terminal | ⌃+\ |
| Kill terminal | ⌃+K |
| Clear terminal | ⌃+K |
| Scroll up | ⌃+↑ |
| Scroll down | ⌃+↓ |
Debugging
| Action | Shortcut |
|---|---|
| Start/Continue | F5 |
| Stop | ⇧+F5 |
| Restart | ⇧+⌘+F5 |
| Step over | F10 |
| Step into | F11 |
| Step out | ⇧+F11 |
| Toggle breakpoint | F9 |
| Run without debugging | ⌃+F5 |
| Start/Continue | F5 |
| Stop | ⇧+F5 |
| Restart | ⌃+⇧+F5 |
| Step over | F10 |
| Step into | F11 |
| Step out | ⇧+F11 |
| Toggle breakpoint | F9 |
| Run without debugging | ⌃+F5 |
Git
| Action | Shortcut |
|---|---|
| Open source control | ⌃+⇧+G |
| Stage changes | ⌘+K+⌘+S |
| Commit | ⌘+↩ |
| Open changes | ⌘+K+⌘+O |
| Open source control | ⌃+⇧+G |
| Stage changes | ⌃+K+⌃+S |
| Commit | ⌃+Enter |
| Open changes | ⌃+K+⌃+O |
Ctrl+K (Inline Edit)
| Action | Shortcut |
|---|---|
| Open inline edit | ⌃+K |
| Toggle input focus | ⌃+⇧+K |
| Apply changes | ⌃+Enter |
| Cancel/delete changes | ⌃+Backspace |
| Ask quick question | ⌥+Enter |
