[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Collapse]CodeRush Classic
  What's New
 [Expand]System Requirements
 [Collapse]Concepts
  [Expand]Code Analysis
  [Expand]Code Style
   Feature Advisor
   FrictionFree Mode
   Mastering CodeRush Classic Features
  [Expand]Visualization Tools
  [Expand]Navigation
  [Expand]Advanced Selection Tools
  [Expand]Clipboard Tools
  [Collapse]Coding Assistance
   [Expand]Code Providers
   [Expand]Code Templates
   [Expand]Refactorings
    AutoDeclare
    Automatic Declaration
    Comment/Uncomment
    Cycle Scope Up/Down
    Duplicate Line
    Embedding
    Intellassist
    IntelliRush
    Inversions
    Smart Constructor
    Smart Enter
    Smart Parens and Brackets
    Smart Paste
   Unit Test Runner
 [Expand]Visual Elements
 [Expand]Tool Windows
 [Expand]CodeRush Classic Options
 [Expand]Examples
  Get More Help
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Smart Parens and Brackets

Smart Parens & Brackets adds a closing paren or bracket, after the opening one is typed, and places a text field between them. The feature is activated if an opening parenthesis or bracket is typed at the end of a an identifier, or if a parenthesis is typed in front of it.

After a closing parenthesis is added, you can do the following:

Action Result
Press ENTER. The text field will be applied, and the caret will be placed to the right of the closing parenthesis.
Press ";". The text field will be applied, and a semi-colon will be placed to the right of the closing parenthesis.
Enter the closing parenthesis. The text field will be applied, and the caret will be placed to the right of the closing parenthesis.
Press Backspace if the parentheses are empty. Both opening and closing parentheses will be deleted.

You can customize Smart Parens & Brackets settings in the Smart Parens & Brackets page of CodeRush Classic Options.

Is this topic helpful?​​​​​​​