In VS2008, you could enable right-margin marks by creating a string registry entry named Guides
under HKCU\Software\Microsoft\VisualStudio\9.0\Text Editor
. It also worked with the express editions: replace Visua开发者_JAVA百科lStudio with VCExpress or VCSExpress.
The value I had was: RGB(192,192,192) 80, 100
which gave me light gray lines at columns 80 and 100.
I've just tried (and failed) to set them up in VC++2010 Express and VC#2010 Express; does anyone know if they're still supported?
Not out of the box, but...
Go to "tools\extension manager".
Click "online gallery".
Type "guides" in the search box.
The first hit is 'editor guidelines', an extension that reads the same registry keys as before. I think there are other extensions in the gallery for it too, maybe.
Here's the link & description of the extension:
http://visualstudiogallery.msdn.microsoft.com/en-us/0fbf2878-e678-4577-9fdb-9030389b338c
Or, better yet, get Microsoft's Productivity Power Tools from the same place (tools/extension manager/online gallery search for guides). Column guides are just one of the many super-cool features this adds to the VS environment...
Visual Assist X also has a feature for this, under
Visual Assist X Options -> Advanced -> Display -> Display indicator after column ....
精彩评论