How can I limit my source code to 76 characters per line in .NET?

  • Thread starter Thread starter David Beoulve
  • Start date Start date
D

David Beoulve

Stupid question... but thanks to Jon's page here:
http://www.yoda.arachsys.com/csharp/complete.html

I now find myself having a good reason to keep my code lines shorter
(which i tend to do for my own sake, but not unilaterally).

In Ultraedit and PSPad, I can create a vertical line that shows me
where the 80th (or whatever) column is. Any such mojo in the .NET
editor?
 
Hello David,

you can indeed make Visual Studio Editor display such a line. However, it
demands editing the registry. It is not possible to enable the vertical line
from within Visual Studio.

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.1\Text Editor

Create a string "Guides" and assign the value "RGB(128,0,0) 79"


Kind Regards,
Hannes Pavelka
 
Hannes said:
Hello David,

you can indeed make Visual Studio Editor display such a line. However, it
demands editing the registry. It is not possible to enable the vertical line
from within Visual Studio.

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.1\Text Editor

Create a string "Guides" and assign the value "RGB(128,0,0) 79"

Where do you learn things like that?
 
Sounds great but 8.0 (VS express) doesn't have a "Text Editor" key (in fact
quite a lot of registry stuff has been removed compared to 7.1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top