Skip to main content
A newer version of this page is available. .

Smart Semicolon

CodeRush places a semicolon to the right of the parentheses, brackets, or braces when you type within them. CodeRush places the semicolon when it is required. If it is not required, CodeRush moves a caret outside the brackets without adding the semicolon.

SmartSemicolon

Smart Semicolon works in C#, TypeScript, JavaScript, and Blazor code.

How to Enable

To enable Smart Semicolon, use the Editor | C# | Smart Keys and Editor | JavaScript | Smart Keys options page.

DeclareLocal

TypeScript Support

The following screencast shows how the Smart Semicolon feature works in TypeScript code.

DeclareLocal

Blazor Support

The Smart Semicolon is available from the code sections in .razor files.

Blazor