Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (843)
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 3134 times)
0 Members and 1 Guest are viewing this topic.
Offline Kova

Senior Devvie

« Posted 2006-04-09 23:16:57 »

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: 12
Projects: 2
Exp: 14 years

Make it work; make it better.

« Reply #1 - Posted 2006-04-10 00: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 Devvie

« Reply #2 - Posted 2006-04-10 18: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!
Legends of Yore - The Casual Retro Roguelike
Offline Anon666

Junior Devvie

aka Abuse/AbU5e/TehJumpingJawa

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

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

Senior Devvie

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

I don't understand your point
Offline blahblahblahh

JGO Coder

Medals: 1

« Reply #5 - Posted 2006-04-23 10: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 Devvie

« Reply #6 - Posted 2006-04-24 15: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  

EgonOlsen (37 views)
2018-06-10 19:43:48

EgonOlsen (20 views)
2018-06-10 19:43:44

EgonOlsen (39 views)
2018-06-10 19:43:20

DesertCoockie (186 views)
2018-05-13 18:23:11

nelsongames (122 views)
2018-04-24 18:15:36

nelsongames (121 views)
2018-04-24 18:14:32

ivj94 (861 views)
2018-03-24 14:47:39

ivj94 (122 views)
2018-03-24 14:46:31

ivj94 (758 views)
2018-03-24 14:43:53

Solater (139 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
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!