Telerik® JustCode™ by Progress

Telerik® JustCode™ can suggest you to move a variable declaration to outer scope.

Note

Language Support

Supported: C#, VB.NET, JavaScript

Not relevant: ASP.NET, XAML, HTML

The behavior can be controlled in JustCode Options - JustCode / Options / Code Analysis / Hints.

When "Show hint for move to outer scope" option is checked in the options dialog, then Telerik® JustCode™ suggests you to move a variable declaration to an outer scope when appropriate.

  1. Position the caret over a variable declaration.
  2. Press Alt+Enter. From the pop-up menu, select Move to outer scope.

    Quick Hints Move To Outer Scope Selected
  3. The result is:

    Quick Hints Move To Outer Scope Result

See Also