I want to build a macro which adds a ; to every line end, which hasn’t already got one and is not empty or a { or }.
I use C# in Visual Studio 2010 Professional so I probably need a VB Macro.
I need it because I have to migrate Unittest from VBS to C# (Don’t ask why). So I got thousands of lines like foo=”53″ bazz=1337
I do not care if support is dropped, I should be done in some weeks. Also if there is one ; put in to much, i still review the code later.
I know you’ve asked for a Macro but a Search and Replace regular expression could be written something like this:
Visual Studio has good options for to “look in” the current document, current selection, all open documents, and the entire solution…