Am 22.08.21 um 10:30 schrieb Sven Schreiber:
Am 22.08.2021 um 10:22 schrieb Artur T.:
> Am 22.08.21 um 10:17 schrieb Sven Schreiber:
>> function void F(int a,
>> int b)
>>
>> matrix x
>>
>> (The line starts 2 columns behind the start of the function argument
>> signature. I'm expecting "matrix" to show up with one indentation
level
>> from the start, so with 4 blanks for me.)
>> Necessary ingredients are having the arguments on multiple lines, and
>> having a whitespace separating line. The problem is that I'm using
>> exactly those ingredients a lot, and I think they're natural.
>>
>> I can imagine it's not easy to get this additional requirement defined
>> in a regex or whatever is used. I could perhaps give it a try if you
>> show me where it is.
>
> Hi Sven,
>
> I copy & pasted your four lines of code (LOC), pressed Ctrl+I and
> everything lined-up as expected here using my xfce desktop. Not sure
> what exact problems you described.
>
Yes, you're right, and especially with the shortcut ctrl+I it's a good
workaround to know, thanks.
Place the cursor after the "matrix x" and type return, and it should go
wrong again.
Ah, ok. I think you expected an automated indentation when pressing
"enter" after "matrix x" similar to the effect of Ctrl+I.
I did some experiments with nested if-blocks below the non-indented
"matrix x" expression, and I think it does its job properly. Maybe its
worth to think about to execute the "Ctrl+I" auto-indentation mechanism
automatically (maybe as an option?) each time after pressing "enter".
But not sure that could have any side-effects...
Artur