有没有办法在IntelliJ中更改设置,以在创建新项目时禁用自动生成主类?

huangapple go评论61阅读模式
英文:

Is there a way to change the settings in IntelliJ and disable auto-generation of the Main class during creation of the new project?

问题

有没有办法在我在IntelliJ中创建新项目时禁用自动生成主类(包含main方法的类)?

英文:

Is there a way to disable auto-generation of the main class (class containing main method) when I create a new project in IntelliJ?

答案1

得分: 1

创建项目时,在左侧菜单中选择“空项目”。这将创建一个空的 Java 项目,不包含任何类。

英文:

When creating a project, in the left menu select "Empty Project". This will create an empty java project with no classes.

答案2

得分: 0

在IntelliJ中,您可以前往设置 <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>S</kbd>,然后在设置窗口中,您可以选择 Editor -> File and Code Templates。在那里,您可以根据您的需求编辑类代码模板:

有没有办法在IntelliJ中更改设置,以在创建新项目时禁用自动生成主类?

英文:

In IntelliJ you can go to Settings <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>S</kbd> and in the settings window you can choose Editor -> File and Code Templates. There you can edit you class code template as per your convenience:

有没有办法在IntelliJ中更改设置,以在创建新项目时禁用自动生成主类?

huangapple
  • 本文由 发表于 2020年7月25日 14:20:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/63085067.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定