Telerik® JustCode™ by Progress

Telerik® JustCode™ can suggest you to split the variable declaration and its initialization expression or vice versa.

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 split declaration and initialization" option is checked in the options dialog, then Telerik® JustCode™ suggests you to split the variable's declaration and its initialization expression.

  1. Position the caret over a variable declaration with initialization expression.
  2. Press Alt+Enter. From the pop-up menu select Split declaration and initialization.

    Quick Hints Split Var Declaration
  3. The result is:

    Quick Hints Split Var Declaration Result

When "Show hint for join declaration and assignment" option is checked in the options dialog, then Telerik® JustCode™ suggests you to join a variable's declaration and its assignment.

  1. Position the caret over an variable declaration which assignment expression is separated from the declaration.
  2. Press Alt+Enter. From the pop-up menu select Join declaration and assignment.

    Quick Hints Join Var Declaration And Assignment
  3. The result is:

    Quick Hints Join Var Declaration And Assignment Result

See Also