CodeAttest
VSTS, Oslo, INETA, ASP.NET, Debugging .NET Applications, Tips and Tricks

February 24, 2005

Visual Studio Guidelines - Rulers

I found this a long time ago, but I haven't thought to blog about it till yesterday. It is really cool hidden feature explained in Sara Ford's blog called Visual Studio Guidelines. Basically it allows you to set rulers in your text editor with preferred color. You can set at most 13 guidelines. The trick is a registry key. When it is deleted the feature is gone again (obviously). John Robbins described it as "the last missing pieces to call VS.NET A complete editor!"

From Sara's blog:

Enabling Guidelines

First, shut down Visual Studio 2005 if already started. Under

[HKEY_CURRENT_USER]\Software\Microsoft\VisualStudio\8.0\Text Editor

create a string value called 'Guides'. Set Guides to the following

RGB(x,y,z) n1,...,n13

Where x,y,z are the RGB values and n is the column number. You can have at most 13 guidelines. For example,

Guides = RGB(128,0,0) 5, 80

will place a Red guideline at column numbers 5 and 80.
And now launch VS and open a text file.

Disabling Guidelines

An obvious no-brainer, just delete the Guides keys you created above. Restart VS, and no more guidelines.




# posted by Martin Kulov @ 12:02 AM




This page is powered by Blogger. Isn't yours?

 




Calendar Martin Kulov's Calendar   RSS Aggregate this blog

DevReach - The Premier Conference for Microsoft Technologies for SEE

Mobility Day 2008 Conference

DevReach - The Premier Conference for Microsoft Technologies in Bulgaria

International Association of Software Architects

SofiaDev .NET User Group

Microsoft Most Valuable Professional

View Martin Kulov's profile on LinkedIn

MSDN Event Bloggers




Recent posts




History




 
Copyright © 2004-2008 CodeAttest Ltd. All Rights Reserved.