starmorph logo
Published on

Cursor and VSCode Mac Keyboard Shortcuts Guide for Developers

Cursor and VSCode Mac Keyboard Shortcuts Guide for Developers

Mastering keyboard shortcuts is one of the fastest ways to increase your coding speed and efficiency. This comprehensive reference guide covers all essential shortcuts for Mac users in both Cursor IDE and VSCode. While Cursor is built on VSCode and shares many shortcuts, it has unique AI-powered features with their own key combinations. Whether you're writing code, refactoring, or navigating through files, these shortcuts will significantly boost your development workflow.

Why Learn Cursor and VSCode Shortcuts?

Professional developers can save up to 8 hours per week by efficiently using keyboard shortcuts. For Mac users, these shortcuts are particularly important as they're optimized for the macOS environment and follow Apple's keyboard conventions. Understanding the differences between Cursor IDE and VSCode shortcuts will help you seamlessly transition between both environments.

Cursor IDE Keyboard Shortcuts

Cursor IDE Docs Keyboard Shortcuts

VSCode Keyboard Shortcuts

VSCode Keyboard Shortcuts PDF

VSCode Keyboard Shortcuts Reference

General

CommandVSCode ShortcutCursor Shortcut
Show Command Palette⇧⌘P, F1⌘⇧P
Quick Open, Go to File⌘P⌘P
New window/instance⇧⌘N⇧⌘N
Close window/instance⌘W⌘W
User Settings⌘,⌘⇧J
Keyboard Shortcuts⌘K ⌘S⌘K ⌘S
Open ChatN/A⌘L
Open ComposerN/A⌘I
Toggle Agent in ComposerN/A⌘.
Toggle between AI modelsN/A⌘/

Basic Editing

CommandVSCode ShortcutCursor Shortcut
Cut line (empty selection)⌘X⌘X
Copy line (empty selection)⌘C⌘C
Move line down/up⌥↓ / ⌥↑⌥↓ / ⌥↑
Copy line down/up⇧⌥↓ / ⇧⌥↑⇧⌥↓ / ⇧⌥↑
Delete line⇧⌘K⇧⌘K
Insert line below/above⌘Enter / ⇧⌘Enter⌘Enter / ⇧⌘Enter
Jump to matching bracket⇧⌘\⇧⌘\
Indent/outdent line⌘] / ⌘[⌘] / ⌘[
Go to beginning/end of lineHome / EndHome / End
Go to beginning/end of file⌘↑ / ⌘↓⌘↑ / ⌘↓
Scroll line up/down⌃PgUp / ⌃PgDn⌃PgUp / ⌃PgDn
Scroll page up/down⌘PgUp / ⌘PgDn⌘PgUp / ⌘PgDn
Fold/unfold region⌥⌘[ / ⌥⌘]⌥⌘[ / ⌥⌘]
Fold/unfold all subregions⌘K ⌘[ / ⌘K ⌘]⌘K ⌘[ / ⌘K ⌘]
Fold/unfold all regions⌘K ⌘0 / ⌘K ⌘J⌘K ⌘0 / ⌘K ⌘J
Add line comment⌘K ⌘C⌘K ⌘C
Remove line comment⌘K ⌘U⌘K ⌘U
Toggle line comment⌘/⌘/
Toggle block comment⇧⌥A⇧⌥A
Toggle word wrap⌥Z⌥Z

Multi-Cursor and Selection

CommandVSCode ShortcutCursor Shortcut
Insert cursor + click + click
Insert cursor above⌥⌘↑⌥⌘↑
Insert cursor below⌥⌘↓⌥⌘↓
Undo last cursor operation⌘U⌘U
Insert cursor at end of each line⇧⌥I⇧⌥I
Select current line⌘L⌘L (also opens Chat)
Select all occurrences of current selection⇧⌘L⇧⌘L
Select all occurrences of current word⌘F2⌘F2
Expand / shrink selection⌃⇧⌘→ / ⌃⇧⌘←⌃⇧⌘→ / ⌃⇧⌘←
Column (box) selection⇧⌥ + drag mouse⇧⌥ + drag mouse
Column (box) selection up/down⇧⌥⌘↑ / ⇧⌥⌘↓⇧⌥⌘↑ / ⇧⌥⌘↓
Column (box) selection left/right⇧⌥⌘← / ⇧⌥⌘→⇧⌥⌘← / ⇧⌥⌘→
Column (box) selection page up⇧⌥⌘PgUp⇧⌥⌘PgUp
Column (box) selection page down⇧⌥⌘PgDn⇧⌥⌘PgDn
Add selection to ChatN/A⌘⇧L
Add selection to EditN/A⌘⇧K
Add selection to new chatN/A⌘L

Search and Replace

CommandVSCode ShortcutCursor Shortcut
Find⌘F⌘F
Replace⌥⌘F⌥⌘F
Find next/previous⌘G / ⇧⌘G⌘G / ⇧⌘G
Select all occurrences of Find match⌥Enter⌥Enter
Add selection to next Find match⌘D⌘D
Move last selection to next Find match⌘K ⌘D⌘K ⌘D
Search codebase in chatN/A⌘Enter (in chat)

Rich Languages Editing

CommandVSCode ShortcutCursor Shortcut
Trigger suggestion⌃Space, ⌘I⌃Space
Trigger parameter hints⇧⌘Space⇧⌘Space
Format document⇧⌥F⇧⌥F
Format selection⌘K ⌘F⌘K ⌘F
Go to DefinitionF12F12
Peek Definition⌥F12⌥F12
Open Definition to the side⌘K F12⌘K F12
Quick Fix⌘.⌘.
Show References⇧F12⇧F12
Rename SymbolF2F2
Trim trailing whitespace⌘K ⌘X⌘K ⌘X
Change file language⌘K M⌘K M
Accept suggestionN/ATab
Accept next wordN/A⌘→
CommandVSCode ShortcutCursor Shortcut
Show all Symbols⌘T⌘T
Go to Line...⌃G⌃G
Go to File...⌘P⌘P
Go to Symbol...⇧⌘O⇧⌘O
Show Problems panel⇧⌘M⇧⌘M
Go to next/previous error or warningF8 / ⇧F8F8 / ⇧F8
Navigate editor group history⌃⇧Tab⌃⇧Tab
Go back/forward⌃- / ⌃⇧-⌃- / ⌃⇧-
Toggle Tab moves focus⌃⇧M⌃⇧M
Previous composerN/A⌘[
Next composerN/A⌘]

Editor Management

CommandVSCode ShortcutCursor Shortcut
Close editor⌘W⌘W
Close folder⌘K F⌘K F
Split editor⌘\⌘\
Focus into 1st, 2nd, 3rd editor⌘1 / ⌘2 / ⌘3⌘1 / ⌘2 / ⌘3
Focus into previous/next editor⌘K ⌘← / ⌘K ⌘→⌘K ⌘← / ⌘K ⌘→
Move editor left/right⌘K ⇧⌘← / ⌘K ⇧⌘→⌘K ⇧⌘← / ⌘K ⇧⌘→
Move active editor group⌘K ← / ⌘K →⌘K ← / ⌘K →
Create new composerN/A⌘N or ⌘R
Close composerN/A⌘W

File Management

CommandVSCode ShortcutCursor Shortcut
New File⌘N⌘N
Open File...⌘O⌘O
Save⌘S⌘S
Save As...⇧⌘S⇧⌘S
Save All⌥⌘S⌥⌘S
Close⌘W⌘W
Close All⌘K ⌘W⌘K ⌘W
Reopen closed editor⇧⌘T⇧⌘T
Keep preview mode editor open⌘K Enter⌘K Enter
Copy path of active file⌘K P⌘K P
Reveal active file in Finder⌘K R⌘K R
Show active file in new window⌘K O⌘K O

Display

CommandVSCode ShortcutCursor Shortcut
Toggle full screen⌃⌘F⌃⌘F
Toggle editor layout⌥⌘0⌥⌘0
Zoom in/out⌘= / ⇧⌘-⌘= / ⇧⌘-
Toggle Sidebar visibility⌘B⌘B
Show Explorer / Toggle focus⇧⌘E⇧⌘E
Show Search⇧⌘F⇧⌘F
Show Source Control⌃⇧G⌃⇧G
Show Debug⇧⌘D⇧⌘D
Show Extensions⇧⌘X⇧⌘X
Replace in files⇧⌘H⇧⌘H
Toggle Search details⇧⌘J⇧⌘J
Show Output panel⇧⌘U⇧⌘U
Open Markdown preview⇧⌘V⇧⌘V
Open Markdown preview to the side⌘K V⌘K V
Zen Mode (Esc Esc to exit)⌘K Z⌘K Z

Debug

CommandVSCode ShortcutCursor Shortcut
Toggle breakpointF9F9
Start/ContinueF5F5
Step into/outF11 / ⇧F11F11 / ⇧F11
Step overF10F10
Stop⇧F5⇧F5
Show hover⌘K ⌘I⌘K ⌘I

Integrated Terminal

CommandVSCode ShortcutCursor Shortcut
Show integrated terminal`⌃```⌃``
Create new terminal`⌃⇧```⌃⇧``
Copy selection⌘C⌘C
Scroll up/down⌘↑ / ⌘↓⌘↑ / ⌘↓
Scroll page up/downPgUp / PgDnPgUp / PgDn
Scroll to top/bottom⌘Home / ⌘End⌘Home / ⌘End
Open terminal prompt barN/A⌘K
Run generated commandN/A⌘Enter
Accept commandN/AEsc

Cursor-Specific AI Features

These shortcuts are unique to Cursor IDE and leverage its AI capabilities:

CommandCursor Shortcut
Open Chat⌘L
Open Composer⌘I
Toggle Agent in Composer⌘.
Toggle between AI models⌘/
Open Chat & Composer history⌘⌥L
Submit with codebase (in Chat)⌘Enter
Add selected code as contextSelect code, ⌘L
Add code as context (to Chat)Select code, ⌘⇧L
Cancel generation (in Composer)⌘Backspace
Accept all changes (in Composer)⌘Enter
Reject all changes (in Composer)⌘Backspace
Create new composer⌘N or ⌘R
Open composer as bar⌘⇧K
Open Cmd+K menu⌘K
Toggle input focus⌘⇧K
Ask quick question⌥Enter
Toggle file reading strategies⌘M

Productivity Tips for Mac Developers

  1. Customize Your Shortcuts: Use the Keyboard Shortcuts editor (⌘K ⌘S) in both Cursor and VSCode to personalize shortcuts based on your workflow.

  2. Learn Incrementally: Master 2-3 new shortcuts each week rather than trying to memorize all at once.

  3. Use Cheat Sheets: Keep a printed shortcuts reference near your workspace until they become muscle memory.

  4. Watch Your Hands: Reduce the need to switch between keyboard and mouse/trackpad by using navigation shortcuts.

  5. Install Keybinding Extensions: Consider extensions that bring keybindings from other editors you're familiar with (e.g., Vim, Sublime, IntelliJ).

  6. Leverage Cursor's AI Features: Take advantage of Cursor's AI-powered shortcuts to speed up code generation, debugging, and refactoring.

  7. See All Shortcuts: In Cursor, press ⌘R then ⌘S to see all available keyboard shortcuts.

Visualizing Keyboard Shortcuts

Understanding keyboard shortcuts visually can help with memorization. Consider using a keyboard visualizer to practice these combinations.

Conclusion

Investing time to learn these Cursor and VSCode shortcuts for Mac will dramatically increase your development speed and reduce the cognitive load of context-switching. The efficiency gains compound over time, making you a more productive developer while reducing strain from repetitive mouse movements.

Remember that muscle memory takes time to build. Be patient with yourself and focus on the shortcuts most relevant to your daily coding tasks first. Cursor's AI-enhanced features also provide powerful productivity boosts when used with their dedicated shortcuts.

Happy coding!