Matching a closing brace in Visual Studio

后端 未结 8 1033
别跟我提以往
别跟我提以往 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:26

    Most of the time, you can use autocompletion and code snippets.

    If you want to write a for loop, just type "for" and then TAB. VS will complete it (including the braces).

    Same thing for if, struct, class, switch... You don't even have to type the first brace !!

    Good paper about it here : https://web.archive.org/web/1/http://blogs.techrepublic%2ecom%2ecom/programming-and-development/?p=655

提交回复
热议问题