Telerik® JustCode™ by Progress

Telerik® JustCode™ can suggest you to remove a single statement enclosing block or to add one.

Note

Language Support

Supported: C#, VB.NET, JavaScript

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

To add surrounding block

  1. Position the caret on a single statement with no block.

  2. Select Add surrounding block from the VisualAid's Fixes menu.

    Add Surrounding Block
  3. The result is:

    Add Surrounding Block Result

To remove a surrounding block

  1. Position the caret inside a block containing a single statement.

  2. Select Remove surrounding block from the VisualAid's Fixes menu.

    Remove Surrounding Block
  3. The result is:

    Remove Surrounding Block Result