Skip to content

Keyboard shortcuts

Keys Action
⌘N New file, as a name field in the sidebar
⌘O Open a file
⌘⇧O Open a folder
⌘P Open Quickly: fuzzy file open
⌘S Save
⌘⇧S Save as
⌘W Close the tab
⌘, Open the settings file
⌘Q Quit
Keys Action
⌘Z / ⌘⇧Z Undo, redo
⌘C / ⌘X / ⌘V Copy, cut, paste
⌘A Select all
⌘/ Toggle comment
⌘⇧D Duplicate line
⌘⇧↑ / ↓ Move line up or down
Tab / ⇧Tab Indent, outdent the selection
⌘D Select the word, then the next occurrence as another cursor
⌥-click Add a cursor
Esc Back to one cursor
⌥ + arrows, ⌥⌫ Word-wise motion and deletion
⌃A E K D B F P N The macOS Emacs bindings
Keys Action
⌘F Find in the file. Tab switches to replace; ↩ cycles or replaces
⌘G / ⌘⇧G Next, previous match
⌘⇧F Find in the project
⌘L Go to line
⌘R Go to symbol in the file
⌘T Go to symbol in the project
> in ⌘P Run a menu command
Keys Action
F12, ⌘-click Go to definition
F1 Hover information for the symbol at the caret
F2 Rename symbol
⇧⌥F Format document
⌘. Quick fix: the code actions at the caret
⇧⌥O Organize imports
⌘⇧X The Extensions page
⌃Space Completion
Tab Take the suggestion
↑ / ↓, then ↩ Pick another suggestion
⌥1…9 Take a suggestion directly
Keys Action
⌘B Toggle the sidebar
⌘E Toggle the Markdown preview
⌘⌥← / → Fold, unfold the block
⌥Z Word wrap for this document
⌘= / ⌘- / ⌘0 Zoom in, out, back to 13 pt
Keys Action
⌘1…9 Switch to a tab
⌘[ / ⌘] Previous, next tab
⌘\ Split the editor to the right
⌘⌥[ / ⌘⌥] Focus the previous, next pane
⌘⌥W Close the pane

With the mouse: drag a tab to reorder it, right-click it to manage tabs, scroll over the tab strip to reveal overflowed tabs, and double-click the empty strip for a new file.

Keys Action
⌃` or ⌘J Terminal panel
⌘⇧C Claude Code tab
⌘↩ in a Claude diff Accept the edit
Esc in a Claude diff Reject the edit
⌘⌥G Source Control
⌘↩ in Source Control Commit the staged changes
⌘↩ in a .http file Send the request under the caret
Esc in a picker or panel Dismiss