80 Column Guidelines in Visual Studio Express

Guidelines in Visual Studio ExpressI wanted to add a 80 column guideline to Visual Studio Express. I searched the settings without luck. Instead I found Sara Ford’s blog explaining how to do that. In the comments Tobias explained how to do that in Visual Studio Express as well. I tried it in Visual Studio C# Express 2005 and 2008. Works fine. The following is just a compilation from Saras blog with comments, all in one place.

Close Visual Studio. Add a string value to the Windows registry called Guides with the value RGB(153,153,153) 79 for a gray (#999) guideline at column 80 to any of the following locations.

Visual Studio 2005: [HKEY_CURRENT_USER]SoftwareMicrosoft
VisualStudio8.0Text Editor

Visual Studio Express 2005: [HKEY_CURRENT_USER]SoftwareMicrosoft
VCExpress8.0Text Editor

Visual Studio Express 2008: [HKEY_CURRENT_USER]SoftwareMicrosoft
VCExpress9.0Text Editor


Regedit: Guidelines in Visual Studio Express
It would of course be nice to have the setting in Visual Studio but for now this is good enough!

2 thoughts on “80 Column Guidelines in Visual Studio Express”

  1. Wow, it’s the future, now! :)

    If only the formatter could break lines automatically at column 80 my life would be perfect.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>