-
Notifications
You must be signed in to change notification settings - Fork 5
Home
timabell edited this page Oct 11, 2011
·
12 revisions
Welcome to the vs-formatter-macro wiki!
to use the macro:
git clone git://github.com/timabell/vs-formatter-macro.git vs-formatter-macro.git
- open your solution
- tools > macros > macros IDE
- in macro explorer, project explorer > click MyMacros
- in the project menu, click add existing item
- browser to vs-formatter-macro.git/Formatting.vb and click add
- tools > macros > macro explorer
- expand mymacros > formatting
- select the project you wish to process in solution explorer
- double click FormatProject in macro explorer
note that this copies the vb file, so you will have to re-export the file to get your changes back into git
if you want to contribute back, you can mail me, or export the file from the macro ide back into vs-formatter-macro.git and publish your own version. note that git thinks the file is binary as it’s in unicode, so you have to open it in a normal visual studio window, and use the extended save options to change back to the windows codepage
News:
- no support for macros in VS11! http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/d8410838-085b-4647-8c42-e31b669c9f11
See also:
- http://timwise.blogspot.com/2009/01/format-all-document-in-visual-studio.html
- http://stackoverflow.com/questions/931406/formatting-at-once-all-the-files-in-a-visual-studio-project
- http://stackoverflow.com/questions/3942958/visual-studio-macro-to-format-all-files-in-a-solution
- http://stackoverflow.com/questions/4152364/auto-format-all-files-in-solution-in-visual-studio-2010