Did you know... You can display Guidelines in the Editor - #184
My most popular tip of all time is Guidelines. It was one of my very first tips about Visual Studio. You can read more about Guidelines and all of the comments (!!!) here on the original Guidelines post.
To enable Guidelines:
Warning: This requires modifying your registry, so use at your own risk. Use only if you are comfortable modifying your registry.
- Go to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Text Editor
- Create a String (RG_SZ) key Guides
- The value is in the format of RBG(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, RBG(128,0,0) 5, 20 will put a two red lines at column positions 5 and 20, as illustrated below.
Technorati Tags: VS2005Tip,VS2008Tip
Comments
Anonymous
March 31, 2008
Did you know your tips are very useful ?Anonymous
April 01, 2008
OK, I'll admit - I bit. I was fooled. Keep those tips coming!! Thanks, and Happy April 1st!Anonymous
April 01, 2008
Hey! that's an evil joke! I almost cry!!! You don't have the right to stop the Tip of the Day, ok?Anonymous
April 01, 2008
These are handy; I've set one up at 8 and one at 80, so that I can have a visual aid for where "two indents" is and one where the traditional max-width is (even though I go over it all the time).Anonymous
April 01, 2008
Hi Sara, You've repeated the typo... "RBG(128,... Many thanks for the tips of the day!Anonymous
April 01, 2008
AAAAAAAAAAAAAAAARRRRRRRRRRRRRRRRRRRRRGGGGGGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHHHHH!!!!! I even told myself, "Sara, don't repeat the typo." thanks DM, i've corrected the typo. Would you believe my focus in college was computer graphics? =)Anonymous
April 02, 2008
I've put this one to good use in VS2005. I do a lot of HTML editing for my major client (a lot of Classic ASP conversions) and quite a bit of code was written by programmers, NOT web developers. Needless to say, you can tell that they though of nesting as an afterthought, not a way of life. Anyway, the guidless at the first 5 tab stops help me to quickly match up tags and keep things properly nested. It's also good when editing JavaScript. Thanks Sara!Anonymous
April 02, 2008
The comment has been removedAnonymous
April 02, 2008
Okay, I tried posting earlier today but I think it didn't work... I was telling you that you would be getting away with the typo for a second time (for free) because your tips are very interesting. But ooops, I re-read your correction and instead of correcting the typo you replicated it to "RBG(x,y,z)". Okay, you're still getting away with that mistake, because it's you.Anonymous
April 03, 2008
Don't you mean "gridlines", not guidelines? Guidelines are what you give us all day... right?