Scott w
Scott w

Reputation: 525

Visual studio Code Collapse panes

Anyone know of a keyboard shortcut to collapse all the panes in visual studio code? I've had a look in the keyboard shortcut settings and couldn't find anything and searching on google just returns visual studio results.

Upvotes: 7

Views: 3976

Answers (3)

Michel
Michel

Reputation: 28259

I use:

On Mac

  • B to collapse the "left" panel (file explorer, ...)
  • J to collapse the "bottom" panel (terminal, etc ...)
  • BJ to collapse both at once

On Windows

Same shortcuts but with Ctrl :

  • CtrlB to collapse the "left" panel (file explorer, ...)
  • CtrlJ to collapse the "bottom" panel (terminal, etc ...)
  • CtrlBJ to collapse both at once

The shortcut is fairly easy to remember.

Upvotes: 15

Benjamin Pasero
Benjamin Pasero

Reputation: 123784

With the next update we will add a command to close all editors.

Update With version 0.5.0 there is a new command to close all editors (View: Close All Editors from the command palette).

After this version we will have commands to collapse editors and restore them.

Upvotes: 3

natemcmaster
natemcmaster

Reputation: 26773

The sidebar can be toggled with Ctrl+B (on Mac ⌘+B.)

Upvotes: 0

Related Questions