Yes, there's a way to change the default setting via the workspace.xml
file in your .idea
folder.
If you start to scroll down in that file you'll eventually come to a number of <configuration>
tags. For example, the default values for the Application
run configuration type on my machine is:
<configuration default="true" type="Application" factoryName="Application">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<option name="MAIN_CLASS_NAME" />
<option name="VM_PARAMETERS" />
<option name="PROGRAM_PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="ENABLE_SWING_INSPECTOR" value="false" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<module name="" />
<envs />
<method />
</configuration>
Notice the runner
attribute; to change the default runner to JaCoCo, change it to runner="jacoco"
. It won't change the runner on any existing ones automatically; only new run configurations will reflect the change. But you can change them manually just the same; they are more towards the bottom of the run configurations.