It is currently Tue May 21, 2013 1:55 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Comment & Indentation annoyance
PostPosted: Thu May 24, 2012 5:04 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Nov 09, 2010 10:15 pm
Posts: 793
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.


Top
 Profile  
 
 Post subject: Re: Comment & Indentation annoyance
PostPosted: Thu May 24, 2012 5:58 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Apr 27, 2007 12:38 pm
Posts: 528
Location: Finland
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?


Top
 Profile  
 
 Post subject: Re: Comment & Indentation annoyance
PostPosted: Thu May 24, 2012 6:23 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 1382
Location: Boston, MA
+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.

_________________
To understand recursion, you must first understand recursion. ~ unknown
I never make stupid mistakes. Only very, very clever ones. ~ John Peel


Top
 Profile  
 
 Post subject: Re: Comment & Indentation annoyance
PostPosted: Thu May 24, 2012 6:31 pm 
Offline
User
User

Joined: Wed Jun 21, 2006 11:09 am
Posts: 16
skywalk wrote:
I agree Folding should ignore commented lines or at least have an option to do so.

+1
Count my vote for this!


Top
 Profile  
 
 Post subject: Re: Comment & Indentation annoyance
PostPosted: Thu May 24, 2012 7:37 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Nov 09, 2010 10:15 pm
Posts: 793
I know I wrote "Fold levels," but what that translates to, and maybe I should have used, was "indentation levels."


Top
 Profile  
 
 Post subject: Re: Comment & Indentation annoyance
PostPosted: Mon May 28, 2012 9:47 am 
Offline
Enthusiast
Enthusiast

Joined: Sat Aug 27, 2011 9:50 pm
Posts: 107
Location: Washington, USA
I've also experienced this.

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


Top
 Profile  
 
 Post subject: Re: Comment & Indentation annoyance
PostPosted: Mon Jun 04, 2012 10:08 pm 
Offline
Addict
Addict

Joined: Sun Dec 12, 2010 12:36 am
Posts: 1284
Location: Waterloo, WI - USA
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.

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Exabot [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye