[Lazarus] Code completation results in ugly indention

Florian Klämpfl florian at freepascal.org
Fri Aug 19 17:07:59 CEST 2011


Am 19.08.2011 17:04, schrieb Alexander Klenin:
> 2011/8/19 Florian Klaempfl <florian at freepascal.org>:
>> I just tried another time the code completation in lazarus for a class,
>> however it resulted again in a pretty bad indention, see attachment. I
>> played with various options and things but nothing helped
>> (procedure/constructor should be at column 4 as it is typically in the
>> compiler sources, begin/end at column 6). What is wrong/how can I tweak it?
> 
> It seems that this file uses totally unique indentation rules,
> incomatible with the rest of the world ;-)
> I'd suggest to turn off auto-indent -- it is not very useful anyway.
> Note that auto-indent is NOT the same as code completion,

Of course not, but code generated by code completion should be indentend
correctly, no?

> which is much more important and should work for you.
> 

Well, it works, but as the example shows, it is indented really ugly and
practically unusable because it requires a lot of hand work to get the
indentation right.




More information about the Lazarus mailing list