Reputation: 25553
Is there a shortcut key to collapse and expand the view bar (the left vertical menu) in visual studio code?
With the mouse, I can do that, by click any item twice in the view bar such as Explorer, Search, SCM etc, and the view bar collapses.
How to do that using keyboard?
The following shows expanded and then collapsed.
Upvotes: 4
Views: 2328
Reputation: 1676
You can define custom key-binding in VS Code (on windows).
To open keyboard shortcuts, use
ctrl + k, ctrl + s
.
If you want to toggle Activity Bar visibility ctrl+alt+\
.
{
"key": "ctrl+alt+oem_5",
"command": "workbench.action.toggleActivityBarVisibility"
},
If you want to toggle Sidebar visibility ctrl+\
.
{
"key": "ctrl+oem_5",
"command": "workbench.action.toggleSidebarVisibility"
},
Upvotes: 0