[英]How to open file always in a new window by VSCode?
(Using MacOS Mojave, VSCode 1.28.2
) (使用
MacOS Mojave, VSCode 1.28.2
)
I'm using VSCode in text editing(like .js, .txt, .csv,...). 我在文本编辑(例如.js,.txt,.csv等)中使用VSCode。
When I double click and open a file in Finder or Desktop(or "Open in VSCode"), and if I'm opening another workspace, it opens the file in the same window as the workspace I'm already opening. 当我双击并在Finder或Desktop中打开文件(或“在VSCode中打开”)时,如果我要打开另一个工作区,它将在与我已经打开的工作区相同的窗口中打开文件。
How to make VSCode to always open files in a new window? 如何使VSCode始终在新窗口中打开文件?
Set "window.openFilesInNewWindow": "on"
in settings.json
. 在
settings.json
设置"window.openFilesInNewWindow": "on"
。
Click on the gear icon on the bottom-left corner of the window, select Settings
then enter window.openFilesInNewWindow
in the search box that appears on the top of the Settings tab to find the setting quickly. 单击窗口左下角的齿轮图标,选择
Settings
然后在“设置”选项卡顶部显示的搜索框中输入window.openFilesInNewWindow
,以快速找到设置。 Click on it and select "on" from the dropdown list. 单击它,然后从下拉列表中选择“ on”。
It explains (below or above the setting, depending if you use the new Settings manager or edit the settings.json
file): 解释(在设置的下方还是上方,取决于您使用的是新的设置管理器还是编辑
settings.json
文件):
Files will open in a new window.
文件将在新窗口中打开。
You can try opening the following: 您可以尝试打开以下内容:
Open the Command pallet using Ctrl+Shift+p
Open user settings(which is a JSON)
Add a new property
"workbench.editor.enablePreview": false
and save it 并保存
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.