Eclipse Code Templates are great. Unfortunately they add lots of comments for stuff I don’t like:
public class MainTest {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
}
}
If you also don’t like the TODO comments you can change the templates via: Window -> Preferences -> Java -> Code Style -> Code Templates.
In the code tree you have the templates. Select for example Code → Method Body and press “Edit” to edit this template and to remove the todo comment.
I hope this helps. I also added this to my Eclipse IDE tutorial in the Eclipse templates section.
You find me also on Twitter. My Google+ profile can be found Lars Vogels Profile.
That’s a great tip. Thanks.
I really wanna thank you for your website, I’ve been working on a project that involves Android and the info you have is really really good. I thank you with my heart