IDE Preferences - [±] Disable auto comment indentation.

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
skywalk
Addict
Addict
Posts: 3994
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

IDE Preferences - [±] Disable auto comment indentation.

Post by skywalk »

I noticed the new auto indenting of comments is "built-in" but not producing the look I prefer.
For long lines, I have comments now that extend way too far to the right.
I really liked the old way.
Please add the option to disable this feature.
IDE Preferences - [x] Disable auto comment indentation.

Thanks.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
skywalk
Addict
Addict
Posts: 3994
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: IDE Preferences - [±] Disable auto comment indentation.

Post by skywalk »

Any chance to add this to preferences via keywords?
I cannot control the placement of my comments and still use auto-indentation.
This is really frustrating.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
skywalk
Addict
Addict
Posts: 3994
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: IDE Preferences - [±] Disable auto comment indentation.

Post by skywalk »

Ok, my annual plea to make indenting comments optional :(
I really appreciate auto indentation with keywords, but not spread out comments?
This is a small example, but comments get crazy if I dare to put a trailing comment on a long procedure or macro.
Example of compact view before autoindent.

Code: Select all

Structure MyStruct_with_really_long_name ;- MyStruct_with_really_long_name
  a.i     ; Something
  b.i     ; Something
  c.i     ; Something
  d.i     ; Something
  ; New set of comments left justified!!
  aa.i    ; Something else
  bb.i    ; Something else
  cc.i    ; Something else
  dd.i    ; Something else
EndStructure

Structure MyStruct ;- MyStruct
  a.i     ; Something
  b.i     ; Something
  c.i     ; Something
  d.i     ; Something
  ; New set of comments left justified!!
  aa.i    ; Something else
  bb.i    ; Something else
  cc.i    ; Something else
  dd.i    ; Something else
EndStructure
After autoindent.

Code: Select all

Structure MyStruct_with_really_long_name ;- MyStruct_with_really_long_name
  a.i                                    ; Something
  b.i                                    ; Something
  c.i                                    ; Something
  d.i                                    ; Something
                                         ; New set of comments left justified!!
  aa.i                                   ; Something else
  bb.i                                   ; Something else
  cc.i                                   ; Something else
  dd.i                                   ; Something else
EndStructure
Structure MyStruct ;- MyStruct
  a.i              ; Something
  b.i              ; Something
  c.i              ; Something
  d.i              ; Something
                   ; New set of comments left justified!!
  aa.i             ; Something else
  bb.i             ; Something else
  cc.i             ; Something else
  dd.i             ; Something else
EndStructure
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: IDE Preferences - [±] Disable auto comment indentation.

Post by Dude »

I agree that indenting comments should be optional, because they are not keywords or commands, and they need to STAY the way we specifically write them... after all, that's what a comment's job is! :) If I want a line of comments (such as a table) to say at column 1 of the IDE, then it should stay there, and not get moved or indented.
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: IDE Preferences - [±] Disable auto comment indentation.

Post by IdeasVacuum »

+1 make it an option
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Bisonte
Addict
Addict
Posts: 1232
Joined: Tue Oct 09, 2007 2:15 am

Re: IDE Preferences - [±] Disable auto comment indentation.

Post by Bisonte »

+1 I agree. Sometimes it's really irritating. But sometimes you need it....
PureBasic 6.10 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: IDE Preferences - [±] Disable auto comment indentation.

Post by uwekel »

+1
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Post Reply