「Java Extension Pack is a collection of popular extensions that can help write, test and debug Java applications in Visual Studio Code. Check out Java in VS Code to get started.」
[java]自動でインポートを最適化する設定。 Optimize imports on the fly "In the Settings/Preferences dialog (⌘,), click Editor | General | Auto Import. Enable the Optimize imports on the fly (for current project) option and apply the changes."