[Lazarus] IDE, indentation after inserting from clipboard
Jürgen Hestermann
juergen.hestermann at gmx.de
Mon Nov 28 18:27:41 CET 2016
Am 2016-11-28 um 14:50 schrieb Mattias Gaertner via Lazarus:
> On Mon, 28 Nov 2016 13:38:11 +0100
> Jürgen Hestermann via Lazarus <lazarus at lists.lazarus-ide.org> wrote:
>
>> In the editor of the IDE, when I put the cursor somewhere and paste multiple lines from the clipboard
>> then only the first line is indented (starts where the cursor is) but all following lines are not indented
>> (start from column 0).
>> For example, if I have this code snippet in the clipboard:
>> case X of
>> 1 :
>> else
>> end; { of case }
>> and paste it at column 4 then I get
>> case X of
>> 1:
>> else
>> end; { of case }
>> instead of
>> case X of
>> 1 :
>> else
>> end; { of case }
>> so I have to indent lines 2-4 manually each time I paste it.
>> Is that how it should be?
>> I would like to have the whole block indented in the same way as the first column.
> Not yet implemented.
Okay. I was not sure whether it can be enabled by some option.
> At the moment pasting at Col>1 pastes the text without reformatting.
> When you paste at Col 1, and you have option 'Codetools/General/On
> paste from clipboard' enabled the IDE will auto indent/unindent the
> pasted text, each line the same amount.
This would not help much as I want to specify the indentation of the
whole block by positioning the cursor somewhere.
I would not have to change the indentation after pasting then.
Thanks for the explanation.
More information about the Lazarus
mailing list