473,388 Members | 1,230 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

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

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?

Apr 12 '06 #1
4 2422
You need it for print it?
....

May be creating a macro to modify source code...
Apr 12 '06 #2
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 Pavelka
blog: http://www.hannes-pavelka.com

"David Beoulve" <eg***********@yahoo.com> schrieb im Newsbeitrag
news:11**********************@i39g2000cwa.googlegr oups.com...
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?

Apr 12 '06 #3
Hannes Pavelka wrote:
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?
Apr 12 '06 #4
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)

"Hannes Pavelka" <hj*******@gmail.com> wrote in message
news:e1*************@news.t-online.com...
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 Pavelka
blog: http://www.hannes-pavelka.com

"David Beoulve" <eg***********@yahoo.com> schrieb im Newsbeitrag
news:11**********************@i39g2000cwa.googlegr oups.com...
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?


Apr 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Noyb | last post by:
I've set up a news links section using the RSS parsing tutorial found here: http://www.sitepoint.com/article/560 Everything works great but depending on the feed source there may be 3 news links...
2
by: xyz | last post by:
I have a form that has a text box that allows multi-line text. When I read an 80K file into it, only 64K characters are stored and displayed. However, if I copy from the 80K file using the...
29
by: Bill Marsden | last post by:
Hi. I am an under-graduate currently studying Open Source (Linux) vs Closed Source and Collaboration within the IT Community. I am fairly new to Javascript and I have written a "Lottery Program"...
5
by: Mitchell Thomas | last post by:
I am using Oracle as a backend and have a field set as Varchar2(2000). The problem i have is access interprets this as a memo field and allows the user to type more than 2000 characters but does...
1
by: Luke Wu | last post by:
I have been using the getline function from K&R2 for simple character input. The prototype is int getline(char *s, int limit); /* returns 0 to signal EOF */ This function simply calls...
4
by: Mark | last post by:
Can you limit the number of characters in a multi-line textbox? My tests in indicate that the MaxLength property causes client side limits only on single line textboxes. Thanks in advance! ...
5
by: woof | last post by:
Hello, I have built a "contact us" form on my Web site and am using the PHP mail() function to send an e-mail to the Webmaster (that's me :-)) Everything works fine. What I would like to know...
4
by: Alec MacLean | last post by:
Is anyone aware of a size limit imposed on the subject text when using the System.Net.Mail library? I'm getting problems of message not being recieved if the subject exceeds 15 chars. Thx
1
by: | last post by:
Hello everyone, I am using a textbox for dumping information generated by the file system watch object. I am having this problem that always at some stage new new information stops being entered...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.