How do I make Visual Studio auto generate braces for a function block?

后端 未结 5 1780
挽巷
挽巷 2021-01-11 15:19

I could swear I\'ve seen people typing function headers and then hitting some key combination to auto-create function braces and insert the cursor between them like so:

5条回答
  •  孤独总比滥情好
    2021-01-11 15:24

    Check out Resharper - it is a Visual Studio add-on with this feature, among many other development helps.

    Also see C# Completer, another add-on.

    If you want to roll your own, check out this article. Insane that one should have to do that, though.

提交回复
热议问题