do you have an extension like SonarLint installed? If installed, you can choose to extend the disable. If it’s not for the reason for the extension. You can modify "java.import.information.showUnusedImports":false settings by the settings file. You can also choose to disable diagnostics for a specific file. Modify the settings file try to solve:
2
Answers
Here is a good article to follow Configure Formatting for Java (VS Code)
TLDR
java.format.settings
Once you have that configured, you can go back to settings and search for
editor.formatOnSave
and voila!do you have an extension like SonarLint installed? If installed, you can choose to extend the disable. If it’s not for the reason for the extension. You can modify
"java.import.information.showUnusedImports":false
settings by the settings file. You can also choose to disable diagnostics for a specific file. Modify the settings file try to solve:.