Matching a closing brace in Visual Studio

后端 未结 8 1125
别跟我提以往
别跟我提以往 2021-01-17 11:01

Is there a setting in Visual Studio 2008 that I can turn on which would generate a matching closing brace for a opening brace?

EDIT: I would imagine that an IDE as p

8条回答
  •  误落风尘
    2021-01-17 11:44

    In VS 2013 there is the option of "Automatic delimiter highlighting" (under tools, options, text editor) and while checking that box should highlight matching braces, it doesn't under default settings. This is because the default background is white, and the default highlight color is also white. This can be changed by going to environment, fonts and colors, and changing the background color of "brace matching (rectangle)". Then matching braces will be highlighted and visible.

    I realized after I answered that the question was creating the brace not being able to find existing braces. As that's the question I was trying to answer when I ended up here I'm leaving the answer in case it's helpful.

提交回复
热议问题