Telerik® JustCode™ by Progress

The Remove Empty Statement quick fix is available for mistyped or needless syntax characters such as duplicate ;(semi-colon).

Note

Language Support

Supported: C#, VB.NET

Not supported: ASP.NET, XAML, JavaScript, HTML

Example

If you type a duplicate semi-colon, like in this expression:

C# Copy imageCopy
int foo = 1;;

Telerik® JustCode™ will automatically underline the expression and report an error.

Example

If you mistype a semi-colon, like in this expression:

C# Copy imageCopy
if (true) ;

Telerik® JustCode™ will automatically underline the expression and will suggest you to replace it with {}.

To delete mistyped or needless syntax characters

  1. Position the caret over the underlined error.

    Delete Select
  2. Press Alt+Enter. From the pop-up menu, select Remove Empty Statement.

    Delete Selected

To replace mistyped character or statement

  1. Position the caret over the underlined error.

    Replace With
  2. Press Alt+Enter. From the pop-up menu, select Remove Empty Statement.

    Replace With Execute
  3. The result is:

    Replace With Result

See Also

Other Resources