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" ?
IDE - What Indentation do you use?
- langinagel
- Enthusiast

- Posts: 131
- Joined: Fri Jan 28, 2005 11:53 pm
- Location: Germany
- Contact:
Re: IDE - What Indentation do you use?
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
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?
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...
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Re: IDE - What Indentation do you use?
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).
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
Re: IDE - What Indentation do you use?
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.
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.
-
MachineCode
- Addict

- Posts: 1482
- Joined: Tue Feb 22, 2011 1:16 pm
Re: IDE - What Indentation do you use?
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.
I also prefer to indent manually because PureBasic never does it to my liking.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
PureBasic: Born in 1998 and still going strong to this very day!
Re: IDE - What Indentation do you use?
You can edit the indentation rules in the preferences.
The only fault is no '[x] ignore comments'
The only fault is no '[x] ignore comments'
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum