Margin Guides in Visual Studio

To set a margin guide in Visual Studio requires a minor Registry Hack (*)

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

RegEdit Screenshot
RegEdit Screenshot

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 RBGB(r,g,b) to change the colour of the guide; you can create multiple guides by separating them with commas at the end.

(*) Usual warnings apply - stuff up your Registry and your machine is hosed. Take precautions.

(Posted here for future reference)