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.
Comment & Indentation annoyance
Re: Comment & Indentation annoyance
Huh? I tried to reproduce this with 4.61 but failed. Do you mean commenting with Ctrl+B or something else?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.
Re: Comment & Indentation annoyance
+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.
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.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: Comment & Indentation annoyance
+1skywalk wrote:I agree Folding should ignore commented lines or at least have an option to do so.
Count my vote for this!
Re: Comment & Indentation annoyance
I know I wrote "Fold levels," but what that translates to, and maybe I should have used, was "indentation levels."
Re: Comment & Indentation annoyance
I've also experienced this.
It would be nice if the auto-indent feature disregarded lines that start with ;
It would be nice if the auto-indent feature disregarded lines that start with ;
-
- Addict
- Posts: 1675
- Joined: Sun Dec 12, 2010 12:36 am
- Location: Somewhere in the midwest
- Contact:
Re: Comment & Indentation annoyance
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.
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.