打开同一个目录两次
在命令行上,我可以打开一个目录:
On command line, I could open a directory like:
code .
现在,我想在另一个窗口中打开并显示两个相同的目录.
(不是拆分编辑器)
然后,我又试了一次.
Now, I want two of the identical diretory opened and displayed in another window.
(It's not spliting the editor)
Then, I tried again.
code .
什么都没发生.
仍然打开了一个目录.
如何完成这样的任务?
Nothing happened.
There's still one directory opened.
How to achieve such a task?
您可以通过以下方式做到这一点:
You can do this with the following ways:
1- 手动打开一个新窗口(ctrlshiftn)并转到:
1- Manually open a new window (ctrlshiftn) and go to:
文件 > 将文件夹添加到工作区.然后只需选择文件夹.
File > Add folder to Workspace. Then just select the folder.
2- 打开命令面板 (ctrlshiftp) 输入 dupl
并点击 enter 将在新窗口中复制当前工作区
*dupl
只是完整命令的过滤器:Workspaces: Duplicate Workspace in New Window
感谢 dipnlink 评论
来源: https://code.visualstudio.com/文档/编辑器/多根工作区
*在 windows (10)、vscode (1.35.1) 中完成
2- Open the command panel (ctrlshiftp) enter dupl
and hit enter that will duplicate the current workspace in a new window
*dupl
is just a filter for the complete command that is: Workspaces: Duplicate Workspace in New Window
thanks to dipnlink comment
Source: https://code.visualstudio.com/docs/editor/multi-root-workspaces
*Done in windows (10), vscode (1.35.1)