To set a margin guide in Visual Studio requires a minor Registry Hack (usual warnings apply - stuff up your Registry and your machine is hosed. Take precautions.)

First, use RegEdit to go to the key HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Text Editor.

Next, create a new string value “Guides” with value “RGB(128,128,128) 99” (sans quotes). This creates a gray guideline just after the 99th column.

Change RGB(r,g,b) to change the colour of the guide; you can create multiple guides by separating them with commas at the end.

(Posted here for future reference)

Comments

blog comments powered by Disqus
Next Post
On NNPPs  10 Jan 2009
Prior Post
Single Reponsibility Principle  04 Jan 2009
Related Posts
Browsers and WSL  31 Mar 2024
Factory methods and functions  05 Mar 2023
Using Constructors  27 Feb 2023
An Inconvenient API  18 Feb 2023
Method Archetypes  11 Sep 2022
A bash puzzle, solved  02 Jul 2022
A bash puzzle  25 Jun 2022
Improve your troubleshooting by aggregating errors  11 Jun 2022
Improve your troubleshooting by wrapping errors  28 May 2022
Keep your promises  14 May 2022
Archives
January 2009
2009