Skip to main content

Parens And Brackets

  • 3 minutes to read

The Parens And Brackets options page contains the Smart Parens and Smart Brackets options.

opAutocompleteParensBrackets

The options page consists of three option blocks.

  • The first block contains the Smart Parens options:

    Option Description
    Use Smart Parentheses Enables or disables Smart Parentheses.
    Auto-complete parentheses Enables or disables autocompletion for parentheses.
    Auto-complete parentheses in front of identifiers (typecasting) If this option is enabled, CodeRush Classic automatically adds the closing parenthesis right after the opening one when it is typed in front of an identifier.
    Add spaces inside parens If this option is enabled, a space is added between automatically completed parentheses.
    Use text fields Specifies whether or not text fields are inserted between automatically completed parentheses.
    Easy-delete empty parentheses Allows you to delete both opening and closing parentheses with a single Backspace keystroke when the cursor is inside the parentheses.
    Ignore closing parenthesis typed inside empty parentheses Specifies the CodeRush Classic behavior if ) is typed when the cursor is inside parentheses. If the option is enabled, the manually typed parenthesis is ignored, and the cursor is moved outside of the parentheses.
    Smart semi-colon for parentheses If this option is enabled, CodeRush Classic places the semicolon to the right of the parentheses when it is typed manually within them.
  • The second block contains Smart Brackets options.

    Option Description
    Use Smart Brackets Enables or disables Smart Brackets.
    Auto-complete brackets Enables or disables bracket auto-completion (the closing bracket is automatically inserted after the opening bracket is typed).
    Add spaces inside brackets If this option is enabled, a space is added between the automatically completed brackets.
    Use text fields Specifies whether or not text fields are inserted between automatically completed brackets.
    Easy-delete empty brackets Allows you to delete both opening and closing brackets with a single Backspace keystroke when the cursor is inside the brackets.
    Ignore closing bracket typed inside empty brackets Specifies the CodeRush Classic behavior if ] is typed when the cursor is inside the brackets. If the option is enabled, the manually typed bracket is ignored, and the cursor is moved outside of the brackets.
    Smart semicolon for brackets If this option is enabled, CodeRush Classic places the semicolon to the right of the brackets when it is manually typed within them.
  • The third block contains the Smart Curly Brackets options.

    Option Description
    Use Smart Curly Brackets Enables or disables Smart Curly Brackets.
    Auto-complete curly brackets Enables or disables curly bracket autocompletion.
    Add spaces inside curly brackets If this option is enabled, a space is added between the automatically completed curly brackets.
    Use text fields Specifies whether or not text fields are inserted between automatically completed curly brackets.
    Easy-delete empty curly brackets Allows you to delete both opening and closing brackets with a single Backspace keystroke when the cursor is inside curly brackets.
    Ignore closing curly bracket typed inside empty curly brackets Specifies the CodeRush Classic behavior if } is typed when the cursor is inside curly brackets. If the option is enabled, the manually typed curly bracket is ignored, and the cursor is moved outside of the curly brackets.
    Smart semicolon for curly brackets If this option is enabled, CodeRush Classic places the semicolon to the right of the curly brackets when it is manually typed within them.

Note

This product is designed for outdated versions of Visual Studio. Although Visual Studio 2015 is supported, consider using the CodeRush extension with Visual Studio 2015 or higher.