[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: continuing indentation in for loop condition in cc-mode
From: |
Emanuel Berg |
Subject: |
Re: continuing indentation in for loop condition in cc-mode |
Date: |
Sat, 06 Feb 2016 03:48:24 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Gregory Fong <gregory.0xf0@gmail.com> writes:
> for (int i = 0;
> i < 5;
> ++i)
> {
> }
>
> but I can't seem to find an offset that adjusts this
> parameter. c-show-syntatic information just shows
> these as being a statement.
>
> Emacs will default to align with the first item in
> the condition:
>
> for (int i = 0;
> i < 5;
> ++i)
> {
> }
>
> I can't imagine that I'm the only person who has
> tried to change this, but it's surprisingly
> difficult to search for answers.
Why is that so surprising? I'd say most people would
agree with the Emacs default.
Doesn't it make the most sense as well?
And, for such a basic for loop, why not put everything
on the same line?
for (int i = 0; i < ARRAY_SIZE; i++) {
...
}
--
underground experts united
http://user.it.uu.se/~embe8573