Search The Blog
About this site

@RoyOsherove

Subscribe!

This site aims to connect all the dots of my online activities - from tools, books blogs and twitter accounts, to upcoming conferences, engagements and user group talks.

from 5whys.com
Twitter: @RoyOsherove
My Book: The Art of Unit Testing
Latest Posts
« Rally Software are doing it right | Main | [Audio Interview] Ingo Rammer and Christian Weyer On Distributed Applications Architecture And Practices »
Thursday
Aug182005

Cool Tip: Show a vertical rule after 80 chars in VS.NET

I have no idea why this is not actually an editor option built in, but still, nice to know it's *possible*.
I got this nice tip from a guy named Herfried K. Wagner (MVP)
 
"Once upon a time I asked if it was possible to display a vertical rule after 80 characters in the IDE's text editor.  Today I read the following suggestion in one of the public groups:
 
Note: Before touching your registry, make sure to back it up. Use this at your own risk!
 
Start RegEdit and open the following key:
 
'HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.1\Text Editor'
 
Create a new string named "Guides" and assign the value "RGB(128,0,0) 80".
This will display a vertical rule after 80 characters.  It's even possible to create more than one rule, for example "RGB(128,0,0) 95, 100".
 
This seems to work fine with VS 2003 and 2005 Beta 2!

PrintView Printer Friendly Version

Reader Comments (1)

Great tip.

I've tested
It worked in 2005 and 2008.

but not working in 2010. any idea?

thanks, Dutt

December 28, 2010 | Unregistered CommenterDutt

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>