At Visual Studio Code version 1.7x.x, I assigned a keyboard shortcut to hide tabs visibility. It looks like this:
// keybindings.json
{
"key": "ctrl+t ctrl+t",
"command": "workbench.action.toggleTabsVisibility"
}
Then updating to 1.84.2 shows command 'workbench.action.toggleTabsVisibility' not found
when I try to use the keybinding. Is it removed or is there new command for that?
2
Answers
It looks like roughly last month (the 1.84.0 update) these commands were renamed (and some commands were also added) looking at the Visual Studio Code repository commit history here in commit
e47adcb
.It looks like there are some new commands you instead need to use, namely
workbench.action.hideEditorTabs
to hide the editor tabs, and thenworkbench.action.showMultipleEditorTabs
to reveal them again (there is alsoworkbench.action.showEditorTab
which will show a single tab as well, but if you want to show all tabs, then you can ignore that command).Thus something like this in the JSON keyboard settings:
If you are looking to toggle between showing a single tab and multiple tabs, try these keybindings:
These use a context clause to distinguish the two states.