Indentation of kate snippets
Yannick Gingras
ygingras at ygingras.net
Sun Feb 27 17:27:30 GMT 2022
Is there a way to make my code snippets preserve the indentation of the
insertion point?
Lets say I have this snippet:
<code>
first
second
${cursor}
</code>
And I expand it right at the ... in the following code:
<code>
def bar():
if True:
...
</code>
Then I get:
<code>
def bar():
if True:
first
second
</code>
With the cursor at the start of the line. I would much rather preserve
the indentation of where I invoke the snippet:
<code>
def bar():
if True:
first
second
</code>
Is there a way to tell kate that this is the behavior that I want?
Thanks!
--
Yannick Gingras
http://ygingras.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: This is a digitally signed message part
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20220227/dae64c01/attachment-0001.sig>
More information about the KWrite-Devel
mailing list