For example:-
LocalDate.now();
StringTokenizer stringTokenizer = new StringTokenizer(".");
CompletableFuture.runAsync( () -> System.out.println("bingo"));
I can auto import class by moving pointer to respective class and click alt enter, has to do same process for all classes. Is there any command that helps auto import all classes at one go?
CodePudding user response:
You can change the settings on your intelliJ.
Got to: Preferances --> Editor --> General --> Auto imports then make sure that the 'Add unambiguous imports on the fly' checkbox is checked.
CodePudding user response:
In intellij, Go to File -> Settings -> Editor -> General -> Auto import -> Enable Add unambiguous imports on the fly -> Click on Apply -> OK