IntelliJ idea sets the default working directory

project more and more, using eclipse felt too card, decided to try the idea.

under multiple modules, system.getproperty (“user.dir”) gets the path to the module when you run the project.

to set the default Working Directory

setting method:

Run -> Edit Configurations -> Working directory

Defaults-> Application

set Working directory to $MODULE_DIR$so that each module gets its own project root path

Read More: