新建一个类,怎么自动生成类的注释,默认情况下 generate comments 没有勾选上,怎么设置 默认才会勾选上
Window->Preferences->Java->Code Style->Code Templates
在这个界面有个CheckBox [ Automatically add comments for new methods and types ],勾选它就可以了。
同时你还可以修改注释模板。