Telerik® JustCode™ by Progress

Telerik® JustCode™ can suggest you to invert if-else statements.


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 invert if-else statement" option is checked in the options dialog, then Telerik® JustCode™ suggests you to invert the if-else statement.

  1. Position the caret over an if-else statement.
  2. Press Alt+Enter. From the pop-up menu, select Invert if-else statement.

    Quick Hints Invert If Statement
  3. The result is:

    Quick Hints Invert If Statement Result

See Also