| Open sidebar |
Ctrl+B |
⌘+B |
Toggles the visibility of the sidebar, which shows the Explorer and other views. Running it while the sidebar is hidden brings the file tree back into view. |
| Close sidebar |
Ctrl+B |
⌘+B |
Toggles the visibility of the sidebar. Run it when you want to temporarily hide the file tree to give the editor area more room. The same key toggles it back on. |
| Open explorer |
Ctrl+Shift+E |
⌘+⇧+E |
Opens the file tree (Explorer) in the sidebar. This is usually the first view you switch to when you want to open a different file in the project. |
| Open search |
Ctrl+Shift+F |
⌘+⇧+F |
Opens the dedicated Search view in the sidebar. Unlike in-editor find, this opens a panel for searching and replacing across the entire project. |
| Open the setting screen |
Ctrl+, |
⌘+, |
Opens the Settings screen where you can change VSCode's various options. Use it to customize the editor's overall behavior, such as font size, theme, or auto save. |
| Open source control |
Ctrl+Shift+G |
⌃+⇧+G |
Opens the Source Control view, which shows the current Git status. Use it when you want to see the list of changed files, stage them, or commit through the GUI instead of the command line. |
| Open debug |
Ctrl+Shift+D |
⌘+⇧+D |
Opens the Debug view, where you manage debug runs and breakpoints. Use it when you want to step through a program while inspecting variable values. |
| Open extension |
Ctrl+Shift+X |
⌘+⇧+X |
Opens the view for searching, installing, and managing extensions. Use it when you want to add new functionality to VSCode, such as language support or a new theme. |
| Open panel |
Ctrl+J |
⌘+J |
Toggles the visibility of the panel at the bottom of the screen, which shows the terminal, output, and similar views. Running it while the panel is hidden brings it back into view. |
| Close panel |
Ctrl+J |
⌘+J |
Toggles the visibility of the panel at the bottom of the screen. Run it when you want to temporarily hide the terminal or output to give the editor area more room. The same key toggles it back on. |
| Open output |
Ctrl+Shift+U |
⌘+⇧+U |
Opens the Output panel, which shows logs from extensions and build tools. Use it when something isn't working as expected and you need to check messages that explain what went wrong. |
| Close output |
Ctrl+Shift+U |
⌘+⇧+U |
Toggles the visibility of the Output panel. Run it after you've finished checking the logs and want to close the panel to free up space in the editor area. |
| Open the problem |
Ctrl+Shift+M |
⌘+⇧+M |
Opens the Problems panel, which lists errors and warnings found in your code. Use it to check for syntax or type errors all at once before saving a file. |
| Close the problem |
Ctrl+Shift+M |
⌘+⇧+M |
Toggles the visibility of the Problems panel. Run it after you've finished checking for errors and want to close the panel to free up space in the editor area. |
| Open debug console |
Ctrl+Shift+Y |
⌘+⇧+Y |
Opens the Debug Console, where you can print variable values or evaluate expressions while a debug session is running. Use it when you've paused at a breakpoint and want to inspect or change values on the spot. |
| Close debug console |
Ctrl+Shift+Y |
⌘+⇧+Y |
Toggles the visibility of the Debug Console. Run it once you're done debugging and want to close the panel to free up space in the editor area. |