In the configuration screen there is a group of parameters "Before starting", which has "Make" as one of the parameters. If this parameter is set, the entire module / project will be rebuilt before starting.
If you want this parameter to be saved for all future configurations automatically created by IntelliJ, check it in the corresponding configuration in the "Default" group.
source share