Remove unused variable
Remove a variable that is not read or written.

Why is this useful?
Unused variables need to be read and understood, even though they have no impact on the program. Removing them makes programs easier to understand.
Configuration
- Code Assist ID (for the configuration file):
remove-unused-variable
- You can configure custom keyboard shortcuts with this code action kind:
refactor.p42.remove-unused-variable
- This code assist provides refactoring suggestions. Learn how to configure the refactoring suggestion visibility.