Brace / Bracket / Parenthesis Matching in SSMS 2012

  • I have not been able to get brace matching to work in SSMS 2012.

    I did try this setting: Tools / Options / Environment / Fonts and Colors, then under 'Display items:', I played with both 'Brace Matching (Highlight)' and 'Brace Matching (Rectangle)', but neither seems to work. What I want it to do is what it does in SSMS 2008: highlight the opening bracket when I type the closing bracket, or highlight both when I bring the cursor adjacent to the bracket or parenthesis.

    If somebody knows how to get this to work, would appreciate your sharing the fix.

    Thanks much.

    Hakim Ali
    www.sqlzen.com

  • Highlighting (and the CTRL+] shortcut to switch between braces at the same level) is only functional when the built-in IntelliSense is enabled. This can be an irritating restriction if you have another tool of this type installed and choose to turn off the built-in feature.

  • SQL Kiwi (5/19/2012)


    Highlighting (and the CTRL+] shortcut to switch between braces at the same level) is only functional when the built-in IntelliSense is enabled. This can be an irritating restriction if you have another tool of this type installed and choose to turn off the built-in feature.

    It is indeed annoying, but with Red Gate SQL Prompt at least, you can enable intellisense, but disable Auto List Members (which is the bit than generally interferes and messes up SQL Prompt) and retain both without too much annoyance:

    http://www.red-gate.com/messageboard/viewtopic.php?t=11049

  • HowardW (5/21/2012)


    It is indeed annoying, but with Red Gate SQL Prompt at least, you can enable intellisense, but disable Auto List Members (which is the bit than generally interferes and messes up SQL Prompt) and retain both without too much annoyance

    Yes, thanks it is SQL Prompt (5.3.2.2) I'm using. SQL Prompt doesn't play well with many of the 2012 language features and with some syntax in general, so I like to use the built-in suggestions too. I tried turning off ALM, and using CTRL-J to only suggest from IntelliSense when SQL Prompt had nothing to offer; however SQL Prompt captures CTRL-J while it is enabled. I could try re-assigning the key, perhaps, or turning SQL Prompt on and off around the CTRL-J presses (LOL!) but...!

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply