Thanks for looking into this Fellippe,
my thinking about it was to do something like a sub-formatter instead of running the concatenated line through the auto-formatter.
When the auto-formatter is processing a sourcefile, then I assume it always know the current indention level at any arbitrary line, i.e. it knows how many spaces need to be added in front of each line.
Now when the auto-formatter detects a line continuation (underscore at end of line), then it should enter some kind of sub-loop, in which it just adds the known amount of spaces right in front of the lines (I mean each single line, no need to concatenate the full line). This sub-loop is repeated until the line continuation ends (no more underscore at line end), then it falls back to the regular auto-formatting until the next continuation is found.
I'm not looking for a complete formatting, but just for correct indention, to avoid the disruption of the block alignment.
'the following is hand-formatted
a$ = "Hello " +_
"World " +_
"!!"
If I later need to add e.g. another IF block, then the following will happen,
'the following is hand-formatted
a$ = "Hello " +_
"World " +_
"!!"
Now here it's easy to see, so I'd probably hand-adjust it again, but imagine a big block with 100 lines or even more which are out of my sight in the moment when I insert the new IF, then I'll probably forget about them.