Page 1 of 1

IDE - What Indentation do you use?

Posted: Mon Sep 19, 2011 7:48 pm
by Zach
I was just wondering if anyone uses custom Indentation routines, or one of the other selectable presets?

I am generally pretty happy with the Indentation, as it is set by default, but I have been curious about other settings as well.
What is the main difference with say, Block Indentation Mode vs Keyword (default) ?

Also I'm not quite sure what the Before/After properties specify, or how they are applied.. Obviously they are the indentation amounts, but I am assuming they are for the lines before/after the item being indented? Or do they control the actual indentation of the block of code itself?

Generally I like to have Indentation as it is now, but sometimes I like to Indent further.. But I'm not sure how to achieve that without ending up with a setup that constantly indents every new line with a keyword command used. I've noticed funny behavior like if I manually tab in, it will hold the indentation after a keyword command has been used, but if I write a comment line above it, the indentation for the comment will "back out", and not hold the same line as the command below it.

So what indentation schemes do you guys use? Do you use custom values that it took you ages to get adjusted "just right" ?

Re: IDE - What Indentation do you use?

Posted: Fri Mar 01, 2013 8:15 pm
by langinagel
Hi,
I use the given rules / keywords, but changed the spacing to 4 spaces.

With old eyes you need better separation of the lines ;-)

I prolong the question: what kind of indentation do you use?
how many space letters are your favorite?

Greetings
LN

Re: IDE - What Indentation do you use?

Posted: Fri Mar 01, 2013 9:29 pm
by c4s
I use the block mode and manually indent as the automatic mode would do. Why? Because auto mode is a little too hasty for my taste...

Re: IDE - What Indentation do you use?

Posted: Fri Mar 01, 2013 10:00 pm
by Shield
I use the regular auto indentation with hard tabs set to the length of six space characters (as I'm not using a monospace font).

Re: IDE - What Indentation do you use?

Posted: Sat Mar 02, 2013 12:34 am
by Tenaja
Tab character, at 4 spaces. <-- and any code I import gets the spaces converted. I like being able to hit the arrow key once and have it move 4 spaces.

I set up a little extra indenting with Select Case, so there are three levels, with the code indented beyond the start of the case tests.

Re: IDE - What Indentation do you use?

Posted: Sat Mar 02, 2013 2:46 am
by MachineCode
I come from Visual Basic and it had 4 spaces for indents, which I was happy with; but for some reason with PureBasic I only prefer 2. Can't figure out why. Using 4 with PureBasic looks "wrong" but in Visual Basic it looks "right". Weird, I know.

I also prefer to indent manually because PureBasic never does it to my liking. :P

Re: IDE - What Indentation do you use?

Posted: Sat Mar 02, 2013 6:15 pm
by skywalk
You can edit the indentation rules in the preferences.
The only fault is no '[x] ignore comments' :cry: