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

来源:互联网 发布:ip网络功放怎么用 编辑:程序博客网 时间:2024/05/05 14:52

转自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.

0 0
原创粉丝点击