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 - `F12` - cycles through all references (press Shift to go back) - `Shift-Option-F12` - same thing but put the list in the sidebar (useful when you need to go through all occurrences of an identifier) - `Cmd-P #getAccount` - find getAccount symbol in codebase 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 # References - https://code.visualstudio.com/docs/getstarted/tips-and-tricks - https://dev.to/terrytyli/my-top-10-vs-code-shortcuts-you-don-t-want-to-miss-nm9