Does VS Code have an auto-import function or hot key for Java?
I installed Java Extension Pack but I found that I need to import every libraries by myself and it is very tiring. Anybody knows solution?
A) in order to have everything working just like intellij or eclipse, there is an extension, install it, Ctrl+Shift+P ==> then write create java project.
B) now that you have the project scaffold right, just right click on the editor, choose source action, then organize imports and select the right libraries to be imported.
来源:https://stackoverflow.com/questions/53534584/java-auto-import-in-visual-studio-code