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

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
jacdelad
Addict
Addict
Posts: 1993
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

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

Post 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.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

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

Post 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.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Post Reply