Visual Studio Guidelines

CraigBlog

Syndication

Via John Robbins, I came across this little gem today. It's a registry setting that lets you display vertical guidelines in Visual Studio (2002, 2003, or 2005). This is handy as a cue that you might be writing lines that will be too long for your teammates to read without scrolling. Looks a bit like this:

Here's a .reg file for doing it in VS.NET 2003. Note that I've set my guides in columns 80 and 120 - you'll probably want something different.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.1\Text Editor]
"Guides"="RGB(128,0,0) 80, 120"


Posted Jun 26 2005, 08:07 AM by craig-andera

Comments

Chris Nahr wrote re: Visual Studio Guidelines
on 06-26-2005 7:04 AM
Those guides are useful indeed. This tip is also in O'Reilly's "Visual Studio Hacks"; they say it was originally posted by Microsoft's Sara Ford on her weblog.

What I don't like is that we still have to hack the registry to get these lines in Whidbey... time for an enhancement suggestion I think!
Craig wrote re: Visual Studio Guidelines
on 06-26-2005 7:25 AM
Yes, in fact Sara's weblog is the one I link to. :)
Christopher Steen wrote Link Listing - June 26, 2005
on 06-26-2005 8:41 PM
Link Listing - June 26, 2005
Keith Brown wrote re: Visual Studio Guidelines
on 06-26-2005 10:11 PM
Ooo, thanks Craig. This will save me some time when I'm writing code for articles.
Lorenzo Barbieri @ UGIblogs! wrote I bookmark del giorno #18
on 06-27-2005 4:58 AM
Ken Brubaker wrote How to limit column widths in Visual Studio
on 07-19-2005 5:46 AM
How to add rule lined to your Visual Studio text editor window.
Cook Computing wrote Visual Studio Guidelines
on 07-19-2005 11:14 PM
I saw Sara Ford's post last week and was meaning to blog about it, then was reminded when I saw Craig Andera's post, the topic being the guidelines feature in Visual Studio which is very useful if you have a...
Stuff that's in my head wrote Vertical guides in Visual Studio
on 08-15-2005 4:59 AM
A little while ago a collegue passed me this tip for adding vertical guides to Visual Studio...
Stuff that's in my head wrote Vertical guides in Visual Studio
on 08-15-2005 5:00 AM
A little while ago a collegue passed me this tip for adding vertical guides to Visual Studio...
mattonsoftware.com wrote .NET Resources
on 05-06-2006 12:35 AM
The following links to .NET resources have been collated over time with the assistance of colleagues. ...

Add a Comment

(required)  
(optional)
(required)  
Remember Me?