Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Removing the default comment lines

 
John G Wright
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
John G Wright
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic