The Remove Unused Variable quick fix is available once JustCode has detected a local variable is unused in its defined scope. JustCode underlines the variable and suggests you remove it.
Note |
|---|
Language Support Supported: C#, VB.NET, JavaScript Not relevant: ASP.NET, XAML, HTML |
To remove unused variable
- Position the caret over the underlined variable.
Press Alt+Enter. From the pop-up menu, select Remove 'a'
To remove unused variable and all assignments
- Position the caret over the underlined variable.
Press Alt+Enter. From the pop-up menu, select Remove 'a' and All Assignments
To remove unused variable and keep side-effect assignments
- Position the caret over the underlined variable.
Press Alt+Enter. From the pop-up menu, select Remove 'a' and Keep Side-Effect Assignments
See Also