eclipse中移除编辑器自动生成的“//TODO comments from auto-generated code”字样

转自How to remove the //TODO comments from auto-generated code


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.

你可能感兴趣的:(eclipse中移除编辑器自动生成的“//TODO comments from auto-generated code”字样)