With Visual Studio Code In the Java source file When saving Delete unused imports.
I found the setting, so make a note of it.
Java > Save Actions: Organize Imports
If you are using a Mac You can find it by opening the configuration file with "Command +," and typing the search word "Java import".
By the way,
Organize means to organize, and it is said to be pronounced as Organize. [Here](https://www.google.com/search?q=Organize+%E6%84%8F%E5%91%B3&oq=Organize%E3%80%80%E6%84%8F%E5%91% B3 & aqs = chrome..69i57j0l7.1857j1j1 & sourceid = chrome & ie = UTF-8).
Because it means to organize Not only to erase unused imports It seems that grouping and sorting are also done.