使用外部应用程序打开文件时,如何在同一个 IDE 实例中打开它们? [英] When opening files with external app, how to open them in the same IDE instance?

查看:18
本文介绍了使用外部应用程序打开文件时,如何在同一个 IDE 实例中打开它们?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Visual Studio Code Insiders(每日构建),因为它是唯一支持打开文件的 Tab 视图的版本.

我使用 FileZilla 直接从 FTP 打开我的文件,并且每次我打开一个新文件.VS Code 会打开一个包含新文件的新应用窗口.

有没有办法告诉编辑器在当前窗口的单独选项卡中打开每个新文件?

解决方案

我设法解决了我的问题.很简单,您必须在用户设置文件中添加以下设置:

window.openFilesInNewWindow":on"

<块引用>

因此,要使其正常工作,您必须将其布尔值设置为 false.例如 window.openFilesInNewWindow":关闭"

转到首选项 - 用户设置,这将自动为您打开 settings.json 文件.

I am using Visual Studio Code Insiders (daily builds) since it is the only version that supports Tab view for opened files.

I am opening my files using FileZilla directly from the FTP and everytime I open a new file. VS Code opens up a new app window with the new file.

Is there a way for me to tell the editor to open every new file in a separate tab in the current window?

解决方案

I managed to fix my problem. It is simple, You have to add the following setting in your User Settings file:

"window.openFilesInNewWindow": "on"

So for this to work, you have to set its boolean value to false. e.g "window.openFilesInNewWindow": "off"

Go to Preferences - User Settings , and this will automatically open the settings.json file for You.

这篇关于使用外部应用程序打开文件时,如何在同一个 IDE 实例中打开它们?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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