In Visual Studio Code, can I open a workspace in a new window in one keystroke? I tried using the macros extension, defining the following:
"macros": {
"openWorkspaceNewWindow": [
"workbench.action.newWindow",
"workbench.action.openWorkspace"
]
}
which does, in fact, open a new window, but then it ignores the new as it calls openWorkspace
.
What I'm trying to do is not replace the current window with the newly opened workspace; I want to retain the current window and open a new one with the workspace in it.
On Windows/Linux - File > Preferences > Settings On macOS - Code > Preferences > Settings
search: open folders in new window set: ON
You can change the editor behaviour by holding the (macOS: Option
key or Cmd
key, win: Ctrl
key or Shift
key) when opening from File > Open Recent > ...
You can also set the settings as well to do it as a default:
"window.openFoldersInNewWindow": "on"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With