1 Feb 2003 01:42
Re: Questions about indentation
Neil Hodgson <nhodgson <at> bigpond.net.au>
2003-02-01 00:42:16 GMT
2003-02-01 00:42:16 GMT
Hi Antti,
> Okay, assume that the cursor is before this ending brace here.
> Now I want to insert an empty line before that brace - and press
> <Enter>. What happens? Well, SciTE indents like this:
>
> int f() {
> // code still here
>
> }
> ^
> +---- Cursor's here now...
Yes, it indents the current line and thus the brace. It does this because
you are inside the brace, hence on indent level 1 and so may want to write
code there.
> Try it out! It indents the ending brace. (Yes, I'd like it to stay
> at the leftmost column.)
The indentation of the brace is a side effect of indenting as is nomal
inside the braces, not because it sees the brace. The same happens if you
Enter before a ')' or any other code
> Is there any way of turning off this behavior?
No. You'd have to add a special rule for this case and I'm not sure how
you would define your preferred behaviour.
> Hmm -- another eccentrity I just encountered is the following:
(Continue reading)
RSS Feed