Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  hiding comments in Eclipse  (Read 1684 times)
0 Members and 1 Guest are viewing this topic.
Offline Kova

Senior Member





« Posted 2006-04-10 01:16:57 »

Hello.
I write lots of comments to mark what I have been doing in code, sometimes for every statement. I'm using Eclipse and I'm wondering is there a way to hide all that comments and show them when I need them? If not within the program itself, a plugin maybe?
I don't have any plugins for Eclipse installed, so I was also wondering are there any very commonly used plugins which would make my life easier? ... that kind where you can't understand how did you do without them before (like me finding Eclipse  Cheesy )
Offline CaptainJester

JGO Knight


Medals: 10
Projects: 2


Make it work; make it better.


« Reply #1 - Posted 2006-04-10 02:07:51 »

Window->Preferences->Java->Editor->Folding select enable folding and check comments.

Folding is usually on by default, but no comment folding.  This will only reduce Javadoc style comments to a single line.  It dones not actually hide them.

Offline Kova

Senior Member





« Reply #2 - Posted 2006-04-10 20:43:04 »

Tnx but I see no changes in my code... comments are the same, multiple lined and single lined ones. What I was thinking of is complete removal of lines with only comments (but line numbers don't change) and removal of comments in lines where there's code also. Attempt to write something where hidden comment is would show the commet... This would help in visualization a lot.
Games published by our own members! Check 'em out!
Try the Free Demo of Droid Assault
Offline Anon666

Junior Member




aka Abuse/AbU5e/TehJumpingJawa


« Reply #3 - Posted 2006-04-19 23:19:16 »

your comments are definitely javadoc "/**" commentsnot just regular block comments "/*" (or single line "//")
Offline Kova

Senior Member





« Reply #4 - Posted 2006-04-23 00:20:59 »

I don't understand your point
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #5 - Posted 2006-04-23 12:14:32 »

// coment
/* multiline
    comment */
/** javadoc
    comment */

<-- notice the three unique syntaxes

malloc will be first against the wall when the revolution comes...
Offline Kova

Senior Member





« Reply #6 - Posted 2006-04-24 17:25:50 »

I got it, you guys are saying I can shorten it to single line if I use javadoc style comment... tnx but it dosen't help as I need to get rid of single line comments mostly Wink
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Try the Free Demo of Revenge of the Titans

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (123 views)
2013-05-17 21:29:12

alaslipknot (131 views)
2013-05-16 21:24:48

gouessej (161 views)
2013-05-16 00:53:38

gouessej (153 views)
2013-05-16 00:17:58

theagentd (166 views)
2013-05-15 15:01:13

theagentd (151 views)
2013-05-15 15:00:54

StreetDoggy (195 views)
2013-05-14 15:56:26

kutucuk (219 views)
2013-05-12 17:10:36

kutucuk (218 views)
2013-05-12 15:36:09

UnluckyDevil (221 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.106 seconds with 21 queries.