Go to Symbol in VS Code (macOS)
Press Shift + Command + O to list the functions and classes of the current file and jump to one.
What it does
Go to Symbol opens a list of the symbols in the file you are editing: functions, classes, methods and, in a Markdown file, the headings. Type part of a name to narrow the list, and press Enter to jump there. Type a colon first to group the list by kind. It needs language support for the file type, as Go to Definition does.
The same shortcut on other platforms
| Platform | Shortcut |
|---|---|
| macOSthis page | Shift + Command + O |
| Windows | |
| Linux |
More VS Code shortcuts: General
- Go to Line
- Go to Definition
- Go to Matching Bracket
- Close window/instance
- User Settings
All 71 VS Code shortcuts for macOSThe full list has a search and a printable PDF.
Questions
What is the VS Code shortcut for Go to Symbol on macOS?
⇧⌘O (Shift + Command + O). Press it to list the functions and classes of the current file and jump to one.
What is the shortcut for Go to Symbol in VS Code on Windows and Linux?
On Windows it is Ctrl+Shift+O. On Linux it is Ctrl+Shift+O.