I have the following in the clipboard: " // comment"
Now, when I paste that to the end of a code line, the blank before the “//” gets removed.
That’s not intended. Blanks should only be removed from the beginning of a line.
I believe we had a discussion about this a few months ago where it was agreed that this should be fixed.
Was there a fix done, or is this still in the queue?
Either that’s a typo or you lost me…
As for me, since the IDE is auto-formatting, the blanks should be removed depending on where it’s being pasted. If in the middle of code, leave the leading spaces. If at the start of a line, strip them.
Trailing spaces and tabs should always be stripped.
The editor removes leading spaces when pasting in the middle or at the end of a code line. Example:
Clipboard contains (note the 5 leading spaces):
// My comment
Source editor line is:
Dim i As Integer
… and you paste the clipboard content at the end of the above line you get:
Dim i As Integer// My comment
A bug introduced with v2015, but Xojo claims it is the correct behavior. Annoying.
[quote=291735:@Kem Tekinay]Either that’s a typo or you lost me…
As for me, since the IDE is auto-formatting, the blanks should be removed depending on where it’s being pasted. If in the middle of code, leave the leading spaces. If at the start of a line, strip them.
Trailing spaces and tabs should always be stripped.[/quote]
Yeah, this annoys the heck out of me in recent IDE versions.
Sorry. Found an 80s text gen.
Thanks, guys. For confirming that I’m on the right page, that it’s still on the list, and … well, Tim!