Edentity Web Systems
You solve creative. We crack code.
/Header/WhoWeAre.jpg
 

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.

  1. Go to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Text Editor
  2. Add a string value "Guides"
  3. 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 |

0 Comment(s)

Leave Comment

Name:
Comment:  
 
Security Check: 
 
 
Edentity Web Systems Inc.
Suite 201
40 Spadina Ave.
Toronto ON
M5V 2H8
Tel:
416.591.2500
Fax:
416.352.5270
Home | Who We Are | What We Do | Clients & Brands | Careers | Contact

Copyright © 2010 Edentity Web Systems Inc. Privacy Policy