After entering EndXYZ and Enter it will be corrected automatically.
Yeah but then I have a new (again: indented) line that I (eventually) need to remove.
Ofc not in the example code (it was just to demonstrate where the cursor is).
Because of that I like to enter an ending statement manually
There's a setting to use real tabs instead of spaces for indents ("Editor -> Use real tab"), which makes Backspace do what you want.
I don't use tabs (because I don't want to use them) and settled with spaces a long time ago (for all languages, not only for PB).
@Both
Thanks for the suggestions though!
@yuki
Awesome! It works as intended (it now removes 2 spaces at once).
I don't see a visual improvement currently (but I'm not using a font
that supports ligatures atm) but maybe that's just because
that I'm working on my Mac and have my PB IDE on a Windows VM
to which I connect via RDP...
There is one thing that would be the icing on the cake but if Scintilla
doesn't support that it's fine.
Is there a #SCI_... constant that does the following:
If a new indented line was created (by hitting {Enter} after an
already indented line) and you hit {Enter} again it would be
fantastic if the indentation of the former line is deleted
automatically.
Like:
Code: Select all
ForEach ReferenceFileContent()
With ReferenceFileContent()
; Skip invalid entries
If \Type = Functions::#LineInvalidKeyValue
Continue
EndIf
<cursor position after {Enter} after EndIf>
<new cursor position after {Enter} again>
And because "<cursor position after {Enter} after EndIf>" just
has a leading indentation that one gets deleted (not the full
line, only the indentation).
If this is difficult to understand I'll upload a .gif animation
of how this works in Sublime Text (it deletes intermediate
indentations between multiple lines (that contain nothing)
but begins the next new line with the correct indentation...