Any way to surround code block with Curly Braces {} in VS2008?

后端 未结 8 2092
-上瘾入骨i
-上瘾入骨i 2020-12-13 12:42

I always find myself needing to enclose a block of code in curly braces { }, but unfortunately that isn\'t included in the C# surround code snippets, which

8条回答
  •  臣服心动
    2020-12-13 13:01

    You can wrap a code block with braces by

    1. Highlight the code block
    2. Ctrl e -> Ctrl u
    3. select option 7

    I know this is an old question but I hope it helps someone

    Ref: Wrapping multiple statements in braces

提交回复
热议问题