Answer the question
In order to leave comments, you need to log in
What to configure in IDEA so that when changing the class name in the java file, the mainClassName in build.gradle automatically changes?
1. There is a file structure:
Boxy directory:
public class newLO {
public static void main(String[] args){
System.out.println("Hi!");
}
}
apply plugin: 'java'
apply plugin: 'application'
mainClassName = "newF"
Answer the question
In order to leave comments, you need to log in
In theory, if you press shift + F6 and edit the class name, then everything will automatically change, but I only used maven and there seemed to be no problems.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question