开发者

How to run a command on file system change in Visual Studio 2010?

开发者 https://www.devze.com 2023-04-08 22:50 出处:网络
I use a tool for validating JavaScript syntax, called JavaScriptLint (javascriptlint.com). I\'d like my Visual Studio to react to my save, CTRL-S and automatically trigger a command tha开发者_运维知识

I use a tool for validating JavaScript syntax, called JavaScriptLint (javascriptlint.com). I'd like my Visual Studio to react to my save, CTRL-S and automatically trigger a command tha开发者_运维知识库t runs javascript lint analyzing my current file.

Currently I do this using an external keycommand mapped to a key combination. But just hitting save and seeing instant output would be huge! :)


I think you can accomplish this task by using a Visual Studio Macro and configuring to a key combination/command.

The following links should help:

Can I have a macro run whenever I save a file in Visual Studio 2005?

Visual Studio Macros

Assigning a Keyboard Shortcut to Macro in VS

Cheers!


JSLint for Visual Studio 2010

0

精彩评论

暂无评论...
验证码 换一张
取 消