The requested page is not available for the requested platform. You are viewing the content for Default platform.

Smart Semicolon

CodeRush places a semicolon to the right of the parentheses, brackets, or braces when it is typed within them. CodeRush places the semicolon only 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 and JavaScript code. This feature is disabled by default. To enable it, use the Editor | C# | Smart Semicolon and Editor | JavaScript | Smart Semicolon options page.


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