且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用“compileOnSave"在 VS 代码中?

更新时间:2022-06-24 22:35:24

根据 TypeScript 网站:

此功能目前在 Visual Studio 2015 中受支持,带有 TypeScript 1.8.4 及更高版本,以及 atom-typescript 插件."

"This feature is currently supported in Visual Studio 2015 with TypeScript 1.8.4 and above, and atom-typescript plugin."

因此,目前 Visual Studio Code 不支持它.我在使用 Visual Studio 2015 和在家使用 Atom 时使用此选项,它工作正常.这实际上是我从 Visual Studio Code 切换到 Atom 的原因之一.

So, it isn't supported by Visual Studio Code at this time. I use this option at work with Visual Studio 2015 and at home with Atom and it works fine. This is actually one of the reasons I switched from Visual Studio Code to Atom.