Lev
Lev

Reputation: 15654

switch back and forth between two tabs in VSCode

Are there shortcuts to go back and forth between current and last selected tab with vscode ? Like I used to be able to do with webstorm.

Upvotes: 3

Views: 1223

Answers (3)

Jet_C
Jet_C

Reputation: 662

If your coming from IntelliJ and you want to be able to switch tabs just like the default IntelliJ tab switcher, use these preferences: Visual Studio Keyboard Shortcuts

The action "ctrl+tab" then "ctrl+tab" will quickly switch back and forth to the last recently used.

Upvotes: 0

user4103074
user4103074

Reputation: 15

There is an extension for this Window Switch by Victor Zhang (yeannylam). https://marketplace.visualstudio.com/items?itemName=yeannylam.window-switch

Change extension shortcut for windowSwitch.switchToLastOpenedFile.

Upvotes: 0

Abdullah Leghari
Abdullah Leghari

Reputation: 2470

Yes there is Ctrl + Tab. This will switch between current and recent tab.

You can also switch to any of open tabs by holding down the Ctrl key and hitting Tab repeatedly until your desired tab is highlighted from the tab selection dialog like that would appear upon first press of Ctrl + Tab keys,

enter image description here

Ctrl + Shift + Tab would do the same but it will start navigating to the tabs from opposite direction.

Upvotes: 6

Related Questions