The Limber Lambda

One for the hidden gems department

Posted in Development, visual studio by Eric Smith on July 29, 2008

Code Margin

Microsoft does it again by including something really useful in their editor but neglecting to let anyone know about it.  For those of you who miss the 80-column (or n-column as the case may be) text width guide from the old Borland editors, just apply the following registry change for the same in VS 2005:

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\Text Editor]
"Guides"="RGB(192,192,192) 80"

As can be seen, the colour of the guide can be specified, as well as the number of characters at which it should appear.  Digging a little deeper, doing the following will also work; rendering multiple guides:

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\Text Editor]
"Guides"="RGB(192,192,192) 80 120"

One Response

Subscribe to comments with RSS.

  1. frankclaassens said, on July 7, 2010 at 04:49

    Ahh, was hoping on finding this article :)

    Can’t develop without it… Thanks


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.