打开同一个目录两次 [英] Open the same directory twice

查看:52
本文介绍了打开同一个目录两次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在命令行上,我可以打开一个目录:

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)

这篇关于打开同一个目录两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆