Technology blog
Posts tagged ‘Macro’
In all of my editors I have used, I have always written a macro to align equal signs in code. For me code has to be aesthetically pleasing and this process helps that by making the equal signs as well as other items line up.
The macro purpose is to align target text on the current and following lines looking for the text until it can no longer find it. At that point it stops, calculates which point is the farthest out and then moves all the other lines to that location.
There are actually two macros, one to only align just = signs and the other which asks for target text to align.
Align VB Macro for VS 2003/05 in Zip