Friday, August 3, 2007

Column guides in Visual Studio

Here are instructions for adding visual column indicators to the Visual Studio editor. This helps when trying to keep your code lines within a certain character limit.

Make the following new registry string values.

For Visual Studio 2003:
Location: [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.1\Text Editor]
String Value: Guides=RGB(128,0,0) 80, 120

For Visual Studio 2005:
Location: [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\Text Editor]
String Value: Guides=RGB(128,0,0) 80, 120

This sets column markers at 80 and 120 characters respectively.

No comments:

Can't RDP? How to enable / disable virtual machine firewall for Azure VM

Oh no!  I accidentally blocked the RDP port on an Azure virtual machine which resulted in not being able to log into the VM anymore.  I did ...