【问题标题】:Visual Studio Code creates multiple instances on Windows 7Visual Studio Code 在 Windows 7 上创建多个实例
【发布时间】:2016-05-22 16:52:50
【问题描述】:

我在 64 位 Windows 7 操作系统上使用 Visual Studio Code 1.1.1 版。

每当我启动 VS Code 时,它​​都会创建多个实例。每个人都会发生这种情况吗?我的设置有问题吗?

注意:我只在 VS Code 中使用 Angular 2 和 TypeScript。

【问题讨论】:

    标签: visual-studio-code vscode-tasks


    【解决方案1】:

    这是一个用户设置:

    window.openFilesInNewWindow 设置控制文件是否应该打开 在新窗口中,而不是重用现有的 VS Code 实例。经过 默认情况下,当你双击一个 VS Code 之外的文件或从命令行打开文件。将此设置为 false 以重用 VS Code 的最后一个活动实例并在 在那里。

    转到文件/首选项/用户设置。

    默认值(在左侧窗格中)是:

    // When enabled, will open files in a new window instead of reusing an existing instance. 
    "window.openFilesInNewWindow": true
    

    要更改设置,请在您的自定义设置(右窗格)中插入以下行。

    {
    
        "window.openFilesInNewWindow": false
    }
    

    您可以找到有关这些设置的完整详细信息here

    【讨论】:

      猜你喜欢
      • 2018-03-13
      • 2015-07-09
      • 1970-01-01
      • 2015-07-09
      • 1970-01-01
      • 2020-03-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多