I 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
It would of course be nice to have the setting in Visual Studio but for now this is good enough!
Hey, I know Samme’s been looking for this for a while! Thx!
Wow, it’s the future, now! :)
If only the formatter could break lines automatically at column 80 my life would be perfect.