After changing my default project directory, when I try to run the main method, I have to manually add new configuration on Run/Debug tab on IntelliJ to actually run the main method. At first, I didn't think of it as an issue because that isn't really much of work, but it happens every time I create a new project.
Is there any way to solve the problem?