How to limit characters per line of the code to a particular number in .NET?





Limit characters per line of the code to a particular number.

We need to edit the Registry for it. It is not possible to enable the vertical line
from within Visual Studio.
How to open registry
Type regedt32 in the run window

for visual studio 2002 Visual Studio registry key is 7.0
for visual studio 2003 Visual Studio registry key is 7.1
for visual studio 2005 Visual Studio registry key is 8.0
for visual studio 2008 Visual Studio registry key is 9.0
for visual studio 2008 Express
2008 Express: HKEY_CURRENT_USER\Software\Microsoft\VCExpress\9.0\Text Editor

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\ 7.1\Text Editor
Double click the Text Editor

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

RGB(100,100,100), 80. The first part specifies the color, while the other one (80) is the column the line will be displayed. The vertical line will appear, when u close and reopen the visual studio.
HappyCoding ! 😉

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: