Is there an option to define default JVM arguments in IntelliJ IDEA?
IntelliJ IDEA中有一个定义默认JVM参数的选项吗?
For example, I would like to always activate:
例如,我想一直激活:
-ea -Dslf4j.detectLoggerNameMismatch=true
- ea -Dslf4j.detectLoggerNameMismatch = true
In Eclipse, the option can be found in:
在Eclipse中,可以在以下文件中找到该选项:
- Preferences -> Java -> Installed JREs -> Edit -> Default VM arguments
- 参数设置-> Java ->安装了JREs ->编辑->默认VM参数
2 个解决方案
#1
16
You have to do it per run type (Application, JUnit test, etc).
您必须针对运行类型(应用程序、JUnit测试等)进行此操作。
In the "edit configurations" window ("Run" ▸ "Edit Configurations..."), expand the "Defaults" item, select the appropriate run type, and edit its defaults in the left pane.
在“编辑配置”窗口(“运行”▸“编辑配置…”),扩大“违约”项,选择适当的经营类型,并编辑其违约在左窗格中。
The full documentation is available in the IDEA docs.
完整的文档可以在IDEA文档中找到。
#2
#1
16
You have to do it per run type (Application, JUnit test, etc).
您必须针对运行类型(应用程序、JUnit测试等)进行此操作。
In the "edit configurations" window ("Run" ▸ "Edit Configurations..."), expand the "Defaults" item, select the appropriate run type, and edit its defaults in the left pane.
在“编辑配置”窗口(“运行”▸“编辑配置…”),扩大“违约”项,选择适当的经营类型,并编辑其违约在左窗格中。
The full documentation is available in the IDEA docs.
完整的文档可以在IDEA文档中找到。