All keybindings for macOS
Getting around
- Select successively larger and larger sections (word, block, function), expanding upward and outward (
Ctrl Shift Right
) - Go back to the file and position where you last edited (Go to Last Edit Location): (
Cmd R Cmd Q
) - Go to last file:
Cmd P P
(keep Cmd pressed down)
Cursor's AI features
Cmd-P >Toggle Cursor Tab
- turn off Cursor's AI suggestions when they get in the way
Sidebar
- Show/hide sidebar:
Cmd B
- File: Reveal Active File in Explorer View
Navigation
Cmd-P #getAccount
- find getAccount symbol in codebaseShift-F12
- cycles through all references
Refactoring / Automatic Edits
- Move to file:
Cmd-.
, then select "Move to file" - Add import:
Cmd-.
, then select "Add import/update import" - Rename symbol:
F2
- Extract method/Extract constant: Select code to extract, then
Cmd-.
, then select appropriate action