Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
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 1941 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: 12
Projects: 2
Exp: 14 years


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!
Legends of Yore - The Casual Retro Roguelike
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.

 

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

The first screenshot will be displayed as a thumbnail.

ctomni231 (39 views)
2014-07-18 06:55:21

Zero Volt (36 views)
2014-07-17 23:47:54

danieldean (29 views)
2014-07-17 23:41:23

MustardPeter (32 views)
2014-07-16 23:30:00

Cero (47 views)
2014-07-16 00:42:17

Riven (48 views)
2014-07-14 18:02:53

OpenGLShaders (38 views)
2014-07-14 16:23:47

Riven (37 views)
2014-07-14 11:51:35

quew8 (33 views)
2014-07-13 13:57:52

SHC (70 views)
2014-07-12 17:50:04
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org 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‑gaming.org
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!