473,748 Members | 7,118 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2437
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_US ER\Software\Mic rosoft\VisualSt udio\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.goo glegroups.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_US ER\Software\Mic rosoft\VisualSt udio\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*******@gmai l.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_US ER\Software\Mic rosoft\VisualSt udio\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.goo glegroups.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
3155
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 or 30. How can I limit the amount of titles, descriptions, and links output to be no more than 10? Thanks, Steve.
2
8909
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 Windows clipboard commands and then paste into the text box, all the characters are stored and displayed. This is how I read the file into the text box. It works fine until the file exceeds 64K. F = FreeFile
29
2283
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" which essentially picks 6 numbers at random and puts them in sequence. Would anyone would be interested in modifying the code below to a). Check for bugs b). Make the program more efficient
5
2658
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 not store the excess characters beyond 2000, giving the user the false sense of security that what they are typing beyond 2000 characters is being saved, which is not the case. I want to prevent the user from typing more than 2000. How do i do...
1
3080
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 getchar() in a loop, which breaks if EOF or too much input occurs (and places necessary '\0'). I always made sure the buffer pointed to by s was large (corresponding
4
4375
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! Mark
5
4298
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 however is whether it is always necessary to limit each line of the message to 70 characters, as is written in the documentation of the function (writing for instance $this->message = wordwrap($message, 70)). It seems to work fine without doing it...
4
8462
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
3175
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 into the textbox even though there should be. If I clear the textbox, new information will start tp appear again. I am not receiving any error message, so is there some sort of internal limit on the amount of text which can be added/pasted into a...
0
8823
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9530
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9363
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9312
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.