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]\Software\Microsoft\
VisualStudio\8.0\Text Editor

Visual Studio Express 2005: [HKEY_CURRENT_USER]\Software\Microsoft\
VCExpress\8.0\Text Editor

Visual Studio Express 2008: [HKEY_CURRENT_USER]\Software\Microsoft\
VCExpress\9.0\Text 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!

Share this post:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • LinkedIn
  • Reddit
  • Slashdot
  • Technorati

2 Comments

  1. Peter said:

    Hey, I know Samme’s been looking for this for a while! Thx!

  2. Samuel said:

    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