Results 1 to 6 of 6
- 11-01-2012, 01:18 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 37
- Rep Power
- 0
Is it possible to create hidden comments in eclipse?
I have started to comment more on code however I find this gets messy. I think a lot of my comments are unnecessary but I still want them in case I forget something
So a feature I think would be useful is hidden comments, for example you want to comment about a section of code - keep this comment shown like a normal comment. but now you want a *lower level of abstraction* and comment an individual line. you only want to see this comment when the you click show, because unlike the normal comment you only want to see this when you are inspecting beyond the general comment
so I think having two different level of comments would be ideal for abstracting code on two different levels, having the benefit of looking at it neat with just the section comments and then showing the lower level comments when you want it
like all ideas I'm sure its already been done. so is there something like this in eclipse?
- 11-01-2012, 02:56 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Re: Is it possible to create hidden comments in eclipse?
Right click in the left margin, next to the first line of your comment; select 'folding>enable folding'; you can hide or show your comment with the small plus or minus sign.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 11-01-2012, 03:09 PM #3
Member
- Join Date
- Nov 2010
- Posts
- 37
- Rep Power
- 0
Re: Is it possible to create hidden comments in eclipse?
I have folding enabled but I can't seem to hide comments. I can do this with methods with the sign described but there doesn't seem to be anyway to hide the comment line, or comment on the line unless I've missed something
- 11-01-2012, 03:38 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Re: Is it possible to create hidden comments in eclipse?
Go to Window>Preferences>Java>Editor>Folding and select 'fold comments'.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 11-01-2012, 05:41 PM #5
Member
- Join Date
- Nov 2010
- Posts
- 37
- Rep Power
- 0
Re: Is it possible to create hidden comments in eclipse?
I did as you said and its enabled now, it wasn't before, however no option appears to show up. I tried // and /* comments but the little minus symbol doesnt appear - or anything else
there is an option to collapse comments that shows up when you right click the margin but this has no effect (even if comments highlighted) and was there before I enabled the thing
- 11-02-2012, 05:21 PM #6
Similar Threads
-
create gui using eclipse
By uthpalaw in forum AWT / SwingReplies: 0Last Post: 03-12-2011, 11:23 AM -
How to create set up file from eclipse
By Santosh_JAVA in forum Advanced JavaReplies: 1Last Post: 02-23-2011, 01:00 PM -
Create jar file from Eclipse
By tarkowc in forum New To JavaReplies: 4Last Post: 01-25-2011, 07:42 PM -
How to create an eclipse editor?
By Rudraraju440059 in forum EclipseReplies: 0Last Post: 08-23-2010, 11:56 AM -
Eclipse - comments
By Java Tip in forum Java TipReplies: 0Last Post: 11-07-2007, 02:56 PM


LinkBack URL
About LinkBacks

Bookmarks