Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make VS Code editor Ctrl+Tab cycle tabs in the same order as they're displayed on screen?

When I go thru open tabs in VS Code by Ctrl+Tab keyboard shortcut, the next tab to display is not always the next tab over to the right of currently displayed. (I am taking wrap-around into account; this also happens when the current tab isn't rightmost) This is a problem for me from an aesthetic/UX point of view because tab changing feels out of sync with the gui, & it slows me down.

I'd be happy with a solution that either makes Ctrl+Tab follow the order displayed onscreen or makes the displayed order follow whatever order Ctrl+Tab is using. Thanks if you have any info

like image 981
Nathan Smith Avatar asked Sep 13 '17 02:09

Nathan Smith


People also ask

How do you shift 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).

How do you keep tabs open in VS Code?

To get a tab out of preview mode you can either right click on the tab and choose keep open or use the shortcut cmd + k enter that is mapped to the command workbench.


1 Answers

In %AppData%\Roaming\Code\User\keybindings.json add this:

{ 
    "key": "ctrl+tab", 
    "command": "workbench.action.nextEditor" 
},
{ 
    "key": "ctrl+shift+tab", 
    "command": "workbench.action.previousEditor" 
},
like image 61
Matt the Developer Avatar answered Oct 01 '22 06:10

Matt the Developer