05/19/2009
Adding Guides to VS2008
Posted by
David Luu
I generally like to keep my code statements all in one line (unless it gets extremely long such as > 150 characters) but I can see how that can be annoying to other developers who read my code. ReSharper can automatically break up your code to improve readability but it's not always ideal. I recently ran into a "hack" that allows you to add column guides in Visual Studio which can be quite helpful in maintaining readability of your code for yourself and among team members. It's simple - only requires adding a key to Windows Registry.
- Go to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Text Editor
- Add a string value "Guides"
- Set the value to RGB(176,176,176) 4,90 where RGB is the colour of your guide and 4 and 90 are the column positions of the guides. You can set as many positions as you want, but I don't think you can have multiple coloured guides. Below is a screenshot.

« Back to Blog Main Page
|