Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switch between tabs from different tab groups in vscode

Is it able to switch between tabs from different groups? Because now if I create two tabs groups and start switching (using Ctrl+Tab) it will start switching tabs within group (not tab from one group to the tab in other group).

I have tried with workbench.action.openNextRecentlyUsedEditor but literally nothing is happening.

like image 408
mardok Avatar asked Dec 16 '17 09:12

mardok


People also ask

How do you toggle between tabs in VS Code?

When using Visual Studio Code on Windows, you can use CTRL + PAGE_UP to switch to the previous tab, and CTRL + PAGE_DN to switch to the next tab. You also have the ability to switch to tabs based on their (non-zero relative) index. You can do so, by pressing and holding ALT , followed by a number (1 through 9).


2 Answers

First, you can use Ctrl +<group number> to shift the focus to the group you wanted. Then you can use Ctrl + Tab to shift between the tabs within that group.

Command to shift the focus to group 1 in the command palette

Let's say I have 2 groups open and I wanted to shift the focus to group 2. I use Ctrl + 2. Later, I can focus on different tabs within group 2 using Ctrl + Tab.

(Ref) Other related shortcuts are here: https://code.visualstudio.com/docs/getstarted/keybindings#_editorwindow-management

like image 52
Krishna Chaitanya Gopaluni Avatar answered Sep 21 '22 17:09

Krishna Chaitanya Gopaluni


There's an open feature request that complains about the unexpected behavior of workbench.action.openNextRecentlyUsedEditor:

workbench.action.openNextRecentlyUsedEditor does not behave as expected (#37366)

Note that it's not that the command doesn't do anything, but that it only does something if there's still another editor left in the recently used list (so it doesn't work as a toggle like Ctrl+Tab does).

like image 44
Gama11 Avatar answered Sep 23 '22 17:09

Gama11