Page 1 of 1

Editor: Put ; left to the code, not left of the line

Posted: Fri Jul 08, 2022 3:30 am
by jacdelad
I don't know if I'm the only one, but I would prefer if the editor would put the ; left of the code instead the left of the line when pressing [Ctrl]+B.
Behaviour now:

Code: Select all

For a=1 To 10
  If a>5
;     If a=7
;       Debug "a=7"
;     EndIf
    Debug "a>5"
  EndIf
Next
New behaviour:

Code: Select all

For a=1 To 10
  If a>5
     ;If a=7
       ;Debug "a=7"
     ;EndIf
    Debug "a>5"
  EndIf
Next
I know I can edit the code of the editor myself, but I would also like to know if I'm the only one who thinks this or not. Maybe it's worth a change. Also the the indentation feature ([Ctrl]+I) moves the outcommented lines far to the right now, which is very unreadable imo.

Re: Editor: Put ; left to the code, not left of the line

Posted: Fri Jul 08, 2022 3:48 am
by skywalk
Yes, this is certainly a "can't please all the people all the time" situation.
I hate having to rearrange comments that are shoved way far to the end of the page.
I understand it is to align to the prior comment that appears at the end of a code line.
But there should be optional settings to avoid this.
For now, I avoid the built-in comment indenter.
It works great for the code, just needs a little more effort for comments.