novicecoder.com

June 28, 2006

Visual Studio margin guide lines

Some of us like to keep our lines under 80 characters wide (and some are forced to by coding standards). Either way, it’s a little bit easier to keep track of it with a guide line denoting the margins. Just modify the registry and create a string value at “HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.1\Text Editor” (or change the 7.1 to 8.0 if you’re using Visual Studio 2005). Name the value “Guides” and set it to “RGB(204,204,204) 79″ where the (204,204,204) is the color you want and the 79 is the zero based column you want the guide on. You can also add multiple guides by adding a comma delimited list like, “RGB(204,204,204) 79,99″ to get guides at the 80 and 100 character mark.

For ease, here are some .reg files that will produce a grey line at the 80 column mark:
Visual Studio 2003
Visual Studio 2005

Filed under: IDEs, Visual Studio — Kevin @ 3:32 am

No Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment

Home
© 2006 NoviceCoder | All rights reserved.