Visual Studio Code open tab in new window

doorman picture doorman · Apr 12, 2017 · Viewed 130.6k times · Source

I am trying to open a tab in a new window in Visual Studio Code so I can move it to another screen. If I drag the tab the other screen, a file is created. Is there a shortcut to open a tab in a new Visual Studio Code window so I can move it to another screen?

Answer

kaijun picture kaijun · Apr 12, 2017

On Windows and Linux, press Ctrl+K, then release the keys and press O (the letter O, not Zero).

On macOS, press command+K, then O (without holding command).

This will open the active file tab in a new window/instance.