Because vscode is often in the unused state, there are some problems when starting. The following errors will be prompted
The Language Support for Java server crashed 5 times in the last 3 minutes. The server will not be restarted
The java.jdt.ls.vmargs field in the previous setting.json is filled in casually. An error message will appear during runtime. Click on it to check the log, and you can see that the error statement is in the line where you just filled it out, because The path cannot be found and the server crashes.
Solution: Re-assign the “java.jdt.ls.vmargs” field to: “-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication”. Then reopen vscode or reload window in Ctrl+Alt+P.