The Limber Lambda

Eric Smith’s technical musings

Archive for July 2008

One for the hidden gems department

with one comment

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"

Written by Eric Smith

July 29, 2008 at 2:42 PM