|
-
Feb 18th, 2005, 05:28 AM
#1
Thread Starter
Fanatic Member
Indenting Borland C#
I am using Borland c# builder - people either love borland or hate it - for me I just have to use it. Is there any way of getting the code to be indented properly - if I select a few lines and press tab - all of the text is replaced with a tab. It really annoying.
R
My secretary hopes that I will pay her, her landlord hopes that she will produce some rent, the Electricity Board hopes that he will settle their bill, and so on. I find it a wonderfully optimistic way of life. [Dirk Gently]
-
Feb 23rd, 2005, 12:24 PM
#2
Junior Member
Re: Indenting Borland C#
Write the code correctly in the first place. If it doesn't automatically indent as you write code, hit the tab key. It's a lot easier than trying to go back and do it all later.
You may want to make slight changes to how you write code to accomodate the situation. For instance,
Code:
if (x=y) {SomeFunction(Params);}
Instead of
Code:
if (x=y)
{
SomeFunction(Params);
}
Good luck,
Dan
-
Feb 23rd, 2005, 12:29 PM
#3
Thread Starter
Fanatic Member
Re: Indenting Borland C#
I need to copy and paste code from one place to another - the indents can be different - In just about every other compiler you can indent a group of code - it seems that borland have been using the same gui text box since they started - time to move on guyies.
R
My secretary hopes that I will pay her, her landlord hopes that she will produce some rent, the Electricity Board hopes that he will settle their bill, and so on. I find it a wonderfully optimistic way of life. [Dirk Gently]
-
Feb 23rd, 2005, 05:35 PM
#4
Junior Member
Re: Indenting Borland C#
Perhaps you could consider purchasing or even designing a low cost formatter. A simple set of rules could zip through text-based code files.
Dan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|