wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Removing the default comment lines Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Removing the default comment lines" Watch "Removing the default comment lines" New topic
Author

Removing the default comment lines

John G Wright
Greenhorn

Joined: Oct 25, 2012
Posts: 18
Hi all !


I am using Eclipse Juno. Whenever I am creating a new .java file, it automatically inserts @param comment lines and in main,//to do comment lines. How to remove this comment lines ?

Thanks
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

To not create comments automatically, deselect the "Generate Comments" option in the wizard you are using to generate the code. You can also change the comment contents to contain what you want by going to Windows > Preferences > Java > Code Style > Code Templates, expands the Comments item. I usually change these to fit my coding style and prefill things such as copyright statements.

P.S. Considering the number of basic questions you are asking about Eclipse, I strongly recommend that you go through a few of the tutorials in the Eclipse help: Help > Help Contents, look at:
Workbench User Guide > Getting Started
Java Development User Guide > Getting Started


JBoss In Action
John G Wright
Greenhorn

Joined: Oct 25, 2012
Posts: 18
Peter Johnson wrote:To not create comments automatically, deselect the "Generate Comments" option in the wizard you are using to generate the code. You can also change the comment contents to contain what you want by going to Windows > Preferences > Java > Code Style > Code Templates, expands the Comments item. I usually change these to fit my coding style and prefill things such as copyright statements.

P.S. Considering the number of basic questions you are asking about Eclipse, I strongly recommend that you go through a few of the tutorials in the Eclipse help: Help > Help Contents, look at:
Workbench User Guide > Getting Started
Java Development User Guide > Getting Started


Thanks for the reply and I downloaded the eclipse tutorials and will be learning from videos and will post my doubts if any after that. I find Eclipse to be very convenient and interesting.
 
jQuery in Action, 2nd edition
 
subject: Removing the default comment lines