I’m using a Mac.
I have several VSCode windows opened.
I would like to switch between only 2 (last viewed) windows. Does anyone know what is the keyboard shortcut to do so?
I tried command + `, but it went through all the opened VSCode windows one by one. Similarly for option + tab.
I tried control + w, it went through all the opened VSCode window too unless you use up and down keys to select.
Could anyone help?
2
Answers
I have the following mapped to alt+tab, in keybindings.json:
Solution 1
These shortcuts allow you to switch between the last two Visual Studio Code windows.
OR
open command pallete CMD+SHIFT+P and search for
Window: Focus Next Group
orWindow: Focus Previous Group
commands to switch between the last two Visual Studio Code windows.Solution 2
Solution 3
You have to edit
keybindings.json
. Use the Command Palette with CMD+SHIFT+P,enter
"Preferences: Open Keyboard Shortcuts (JSON)", and hitenter
.Then add to the end of the file:
OR
OR