Surround code block with curly braces?

后端 未结 6 999
Happy的楠姐
Happy的楠姐 2021-02-18 22:53

Is there a shortcut to surround a given (selected) code block with curly braces?

VS 2015 + R# 2016.1

6条回答
  •  情话喂你
    2021-02-18 23:29

    As an as an alternative to Patrick's answer (Ctrl+E, U, 7) you could also use the extended Alt+Enter -menu of ReSharper 9+.

    Alt+Enter, UP, UP, Enter, or

    Alt+Enter, "bl", Enter

    Unfortunately, I don't know a way to bind this to a shorter hotkey.

    But if this is really important to you, you could try AutoHotkey.

提交回复
热议问题