Page 1 of 1

Comment & Indentation annoyance

Posted: Thu May 24, 2012 5:04 pm
by Tenaja
When you have a line of code, and you use the IDE to comment it, then you hit return, the whole line is indented.

This is very annoying, especially within higher fold levels.

This is not a high priority request, but I would at least appreciate it if you added it to the list of updates to make (or consider making) when you are working on the IDE quirks.

One "simple" option with lines contains more than merely whitespace is to place the commenting "; " characters at the indentation position, like Notepad++ does. That eliminates any indentation issues. The comment sections are not as neat, but this would be preferred to the annoyance.

Thanks.

Re: Comment & Indentation annoyance

Posted: Thu May 24, 2012 5:58 pm
by eesau
Tenaja wrote:When you have a line of code, and you use the IDE to comment it, then you hit return, the whole line is indented.
Huh? I tried to reproduce this with 4.61 but failed. Do you mean commenting with Ctrl+B or something else?

Re: Comment & Indentation annoyance

Posted: Thu May 24, 2012 6:23 pm
by skywalk
+1
I agree Folding should ignore commented lines or at least have an option to do so.
Of course, if you disable Folding, there is none applied, which is not a solution for me.

Re: Comment & Indentation annoyance

Posted: Thu May 24, 2012 6:31 pm
by ssb
skywalk wrote:I agree Folding should ignore commented lines or at least have an option to do so.
+1
Count my vote for this!

Re: Comment & Indentation annoyance

Posted: Thu May 24, 2012 7:37 pm
by Tenaja
I know I wrote "Fold levels," but what that translates to, and maybe I should have used, was "indentation levels."

Re: Comment & Indentation annoyance

Posted: Mon May 28, 2012 9:47 am
by void
I've also experienced this.

It would be nice if the auto-indent feature disregarded lines that start with ;

Re: Comment & Indentation annoyance

Posted: Mon Jun 04, 2012 10:08 pm
by Zach
I prefer my comments to line up with the lines they are related to, imho..

What really irks me is when I either start commenting as I write, or go back and comment some code that is indented and the comment does NOT indent, but defaults to the outside margin.
This also happens with code sometimes, I guess due to the auto-indentation mucking it up.. Sometimes I prefer to insert indentations in my code / comments..

I guess I could just turn it off and let my cursor pos. fall where it may; but that is a lot of extra work to indent then go back and unindent on the next new line(s), etc..


What would be really nice is having some kind of flexible, learning indentation. If that's even possible.