Shortcut to create properties in Visual Studio?

后端 未结 16 1875
暖寄归人
暖寄归人 2020-12-02 03:42

I have seen some people creating properties in C# really fast, but how did they do it?

What shortcuts are available in Visual Studio (currently using Visual Stu

16条回答
  •  执笔经年
    2020-12-02 04:31

    Using VsVim the code snippets seem to work a little funny. The shortcut I was looking for when I ended up here is much simpler: after a member name type {g;s;

    I have delimiter auto-closing turned on, so the closing brace appears on {, and typing a semicolon triggers an autocomplete for get and set.

    It works on VS2013 and VS2015, and VS2012 just lacks the automatic brace matching.

提交回复
热议问题