我正在尝试在 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/