How to change auto-generated code when creating new class in Eclipse

后端 未结 5 1843
渐次进展
渐次进展 2020-12-04 22:03

Whenever I create a new Java file in Eclipse and check off the option to add public static void main(String args[]), this code is generated:

pub         


        
5条回答
  •  醉梦人生
    2020-12-04 22:33

    Eclipse has a lot of configuration options. Take a look in the Windows | Preferences dialog (or the Eclipse Preferences pan on OSX).

    If you dig deep enough - you'll find the options under Java | Code Style.

提交回复
热议问题