【问题标题】:Visual Studio 2010 command to edit file in same instanceVisual Studio 2010 命令在同一实例中编辑文件
【发布时间】:2023-04-08 15:55:01
【问题描述】:

我需要在 Visual Studio 中从命令行打开一个文件列表,但在同一个实例中。

我用过:

devenv.exe /Command Edit fileName

但这会为每个文件打开一个新实例。是否可以从命令行编辑已打开实例中的文件?

【问题讨论】:

  • 我通过添加文件列表作为参数解决了这个问题。请关闭

标签: visual-studio visual-studio-2010 command-line


【解决方案1】:

如果您的文件关联设置正确,则可以:

start filename

【讨论】:

  • 金色。不知道这个!
【解决方案2】:

而不是使用列表

"devenv.exe file1" ... "devenv.exe fileN" 

我用过:

"devenv.exe file1 ... fileN"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-03-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多