oracle / javavscode

Java platform support for Visual Studio Code for full featured Java development (edit-compile-debug & test cycle)
Apache License 2.0
231 stars 31 forks source link

How to remove hints? #239

Closed CreazyGuyDev closed 2 months ago

CreazyGuyDev commented 3 months ago

How can i remove hints like method or var unused when they are annotated with some annotation?

Achal1607 commented 3 months ago

Just for clarification are you talking about SuppressWarnings annotations, right?

CreazyGuyDev commented 3 months ago

Just for clarification are you talking about SuppressWarnings annotations, right?

No. I'm talking about some type of configuration.

Achal1607 commented 3 months ago

@DawidRatajczak Thank you for clarifying. There's a configuration for jdk.hints.preferences, you can provide path for the hints preferences xml file exported from NetBeans. For now there is no as such annotation provided in the extension for removing the hints other than SuppressWarnings or what is provided in JDK which in my opinion is fairly good for removing hints.

Achal1607 commented 2 months ago

Closing this due to inactivity. Feel free to re-open this issue, if you still have some clarifications.