Results 1 to 4 of 4

Thread: Indenting Borland C#

  1. #1

    Thread Starter
    Fanatic Member THEROB's Avatar
    Join Date
    Oct 2000
    Location
    I'm cold and there are wolves after me
    Posts
    575

    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]

  2. #2
    Junior Member
    Join Date
    Feb 2005
    Posts
    31

    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

  3. #3

    Thread Starter
    Fanatic Member THEROB's Avatar
    Join Date
    Oct 2000
    Location
    I'm cold and there are wolves after me
    Posts
    575

    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]

  4. #4
    Junior Member
    Join Date
    Feb 2005
    Posts
    31

    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
  •  



Click Here to Expand Forum to Full Width