Where to add compiler options like -ea in IntelliJ IDEA?

后端 未结 2 1335
深忆病人
深忆病人 2020-12-01 05:59

I want to add the -ea option. I set it in Project Settings --> Compiler --> Java Compiler : Additional command line

2条回答
  •  时光说笑
    2020-12-01 06:22

    You can also make IntelliJ IDEA support assertions by default by changing the default Application configuration:

    In the top menu, press Run > Edit Configurations > Defaults > Application > VM options.

    To enable the assertion feature for all application, you could just fill the VM options with -ea

提交回复
热议问题