I particularly like the File|Save macro idea, though that is obviously not viable in Visual Studio 2012 as the Macros IDE has been removed in that version of Visual Studio. Insert the following code in the module:Ī simple, concise & well illustrated article.In the Project Explorer panel, double click on EnvironmentEvents module.On the left hand side there should be a Project Explorer panel.Go to menu Tools →Macros →Macros IDE, this will bring up a the Macros IDE.Now that we have created a command to run Cppcheck, we can have it run automatically after a file save: The cool thing about the -template=vs switch is that you can click on a Cppcheck error and Visual Studio will automatically take you to that line of code: You can now use select the Cppcheck menu entry any time you want to run Cppcheck on a file. Voila! You now have a Cppcheck entry in your Tools menu: Click on the Move Up button repeatedly until your entry is at the top of the list, this will make it easier to identify you new command as you can count on it being called Tools.ExternalCommand1. Make sure Use Output window checkbox is enabled.Set Arguments to -quiet -verbose -template=vs $(ItemPath).
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |