typescript - Visual Studio Code,在外部应用程序中打开当前文件

标签 typescript visual-studio-code electron

我正在尝试在 Visual Studio Code 中编写一个简单的扩展,该扩展将简单地获取当前文件并在外部应用程序中启动它。我们怎样才能做到这一点?

最佳答案

使用 VS Code Tasks 找到答案.如果有人有使用扩展的解决方案,我们将不胜感激。

{
    "version": "0.1.0",

    // we want to run vs
    "command": "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\devenv.exe",

    // the command is a shell script
    "isShellCommand": true,

    "showOutput": "silent",

     "args": ["/edit", "${file}"]

}

关于typescript - Visual Studio Code,在外部应用程序中打开当前文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35115490/

相关文章:

javascript - 在 Angular 2+ 中按顺序订阅可变数量的 Observable

python-3.x - 用 MinGW 或其他 C++ 编译器模仿 Visual C++(对于基于 Visual C++ 的 Python 包)?

node.js - 如何从浏览器中的精简服务器中删除 "Connected to BrowserSync"徽章

css - Atom/Electron 开发者工具主题

javascript - 使用 React Router v4 在身份验证后导航到页面

typescript - 使用 Typescript 1.7 从 Angular 2 模块导入类的问题

reactjs - typescript react : Access component property types

带有空函数作为参数的 TypeScript?

macos - 如何配置 Visual Studio 代码以使用 Mac 的标准选项卡切换快捷方式?

javascript - 基于数据属性的Appendchild