Telerik® JustCode™ by Progress

The Remove Unused Variable quick fix is available once Telerik® JustCode™ has detected a local variable is unused in its defined scope. Telerik® 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

  1. Position the caret over the underlined variable.
  2. Press Alt+Enter. From the pop-up menu, select Remove 'a'

    Quick Fix Remove Unused Variable

To remove unused variable and all assignments

  1. Position the caret over the underlined variable.
  2. Press Alt+Enter. From the pop-up menu, select Remove 'a' and All Assignments

    Quick Fix Remove Unused Variable And All Assignments

To remove unused variable and keep side-effect assignments

  1. Position the caret over the underlined variable.
  2. Press Alt+Enter. From the pop-up menu, select Remove 'a' and Keep Side-Effect Assignments

    Quick Fix Remove Unused Variable And All Assignments Keeping Side Effects

See Also