-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unreferenced/Unused Method, Field highlight #3532
Comments
|
Thank you for explanation. Just curious, what would be your approach finding and removing unused public methods, fields, enums from code? |
You can try using Intellij, but that feature seems pretty controversial, so much so that people tend to disable it. It's unlikely such feature will land in vscode-java. Now if you really really want to get that feature working in vscode-java, I'd suggest you write an extension for vscode-java, that would embed https://marketplace.eclipse.org/content/unnecessary-code-detector, stripped of all its UI dependencies. Then you may be get something working. maybe. |
Thnank you for suggestions. |
Type: Feature Request
When I write and develop in Java a lot of code is written and changed, due to nature of development. Someties is happens that some variables or even methods don't get used as initially thought, it would be beneficial if there is a way to provide unused method, field highlight via graying out the field name, or method name respectively.
Extension version: 1.28.1
VS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:14:59.643Z)
OS version:
Modes:
The text was updated successfully, but these errors were encountered: