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.


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.


TypeScript Support

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


Blazor Support

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