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 |
---|
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 |
---|
if (true) ;
|
Telerik® JustCode™ will automatically underline the expression and will suggest you to replace it with {}.
To delete mistyped or needless syntax characters
Position the caret over the underlined error.
Press Alt+Enter. From the pop-up menu, select Remove Empty Statement.
To replace mistyped character or statement
Position the caret over the underlined error.
Press Alt+Enter. From the pop-up menu, select Remove Empty Statement.
The result is:
See Also