Visual Studio代码 - 如何从上下文选项打开多个窗口

发布于 2025-02-11 21:34:37 字数 368 浏览 1 评论 0原文

有一些 stackoverflow中的指南 Visual Studio中的多个窗口。但这在他们正在谈论的视觉工作室内。

这是我想要的。我的桌面中有一个称为a.txt的TXT文件,我右键单击它,上下文选项使用代码打开,然后将其打开。我的桌面中有另一个称为b.txt的TXT文件。当我正确地将其关闭并使用Visual Studio代码打开时,两个文件都位于同一窗口中。

是否有可以在两个窗口中打开两个文件的设置?

There are some guides in stackoverflow for opening multiple windows in Visual Studio. But it is inside the Visual Studio they are talking about.

Here is what I want. There is one txt file called A.txt in my desktop, I right click it and the context option shows Open With Code, and I open it. There is another txt file called B.txt in my desktop. While I right clit it and open it with visual studio code, both the two files are in the same window.

Is there any setting that the two files can be opened in two windows?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦境 2025-02-18 21:34:37

不确定为什么您想要那个,但实际上有一个设置,它的行为就像您想要的“ on”:

窗口:在新窗口中打开文件控制是否应在
使用命令行或文件对话框时的新窗口。请注意
仍然可以忽略此设置的情况(例如,使用
- 新窗口或 - 备用窗口命令行选项)。

您可以通过以下方式找到它:用户 - >窗口 - >新窗口

您可以通过按CTRL +快速打开“设置”对话框

Not sure why you want that but actually there is a setting which behaves like you want when turned to "On":

Window: Open Files In New Window Controls whether files should open in
a new window when using a command line or file dialog. Note that there
can still be cases where this setting is ignored (e.g. when using the
--new-window or --reuse-window command line option).

You can find it via: User -> Window -> New Window

You can quickly open the settings dialog by pressing CTRL + ,

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文