Did you even try VSCode or are you just making things up? The official docs link you to a build of VSCode with Java extensions preinstalled, exactly what you’re asking for, calling the Coding Pack for Java: https://code.visualstudio.com/docs/java/java-tutorial
The OBE is much much nicer in IDEA - it figured out what I was doing (when I didn’t even know) and worked fine out of the box with Java8.
VSCode got into some loop where it demands Java 11 for highlighting code but then explodes on a Java 8 project and I’ll be arsed if I’m going to spend time debugging what’s wrong
I do use vscode for config files and other “quick load” things - it’s beating BBEdit there.