VS Code Keyboard Shortcuts/Toggle primary sidebar

Show or hide the explorer/sidebar area.

Section: Windows and Panels

Toggle primary sidebar

text
text
Windows/Linux: Ctrl+B
macOS: Cmd+B

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Windows and Panels
New window
Open a new VS Code window.
OpenIn sheettextsame section
Close window
Close the current VS Code window.
OpenIn sheettextsame section
Toggle bottom panel
Show or hide Problems, Output, Debug Console, Terminal.
OpenIn sheettextsame section
Toggle Zen Mode
Minimal distraction-free editing mode.
OpenIn sheettextsame section
Quick Open
Search and open files.
Copy line up/down
Duplicate current line or selection.