Reputation: 43
Is it possible to associate a workspace with multiple windows? For example, when I open a workspace, can I have it open memorized documents in two windows? If I open a new window from an existing workspace, will it be opened under the same workspace with the same extensions enabled and disabled?
Upvotes: 4
Views: 2287
Reputation: 181050
To duplicate your workspace in a new window see release notes, duplicate a workspace.
Duplicate Workspace in New Window
There is a new command Duplicate Workspace in New Window to duplicate the current workspace in a new window. This command can be used as a workaround to the current limitation that one workspace cannot be opened in two windows. The workaround works best when you have the setting
files.autoSave
set toafterDelay
,onFocusChange
, oronWindowChange
. In this way, the editor documents will be synced through the file system when you have the same document open in different windows.
The new window will have the same extensions enabled and disabled. But it will not open any files that you have already opened in the source window. Pay heed to the above link's comments about synchronizing your saves across windows.
You will need to bind the command to a keybinding, for example:
{
"key": "ctrl+alt+w",
"command": "workbench.action.duplicateWorkspaceInNewWindow"
}
Upvotes: 5