-
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
-
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
-
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
-
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