【问题标题】:How to open file in VSCode from integrated terminal in a current application window?如何在当前应用程序窗口中从集成终端打开 VSCode 中的文件?
【发布时间】:2017-05-13 22:49:12
【问题描述】:

现在:

rudskoy$>: code temp.py
—————> It opens temp.py in a new VS Code window! 

我想要什么:

rudskoy$>: code temp.py
—————> It opens temp.py in a current window as a new tab

此行为是否可配置?

【问题讨论】:

    标签: visual-studio-code vscode-settings


    【解决方案1】:

    我已调查该终端命令 (code) 有一个 --help 选项。

    --help 说:-r, --reuse-window Force opening a file or folder in the last active window.

    这个-r 选项是我想从我的问题中得到的。

    【讨论】:

      猜你喜欢
      • 2021-04-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-18
      • 2020-04-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多