开发者

How to use short cut keys to insert get set code of data member in visual studio?

开发者 https://www.devze.com 2022-12-19 12:36 出处:网络
How to use short cut keys to insert get set code of data member in visual studio? I think it i开发者_C百科s some tab.Try to type \"prop\" and press twice TAB and you\'ll see someting cool. (at least

How to use short cut keys to insert get set code of data member in visual studio?

I think it i开发者_C百科s some tab.


Try to type "prop" and press twice TAB and you'll see someting cool. (at least for me)


To get the full property for the getter and setter method type "propfull" and tab twice. This will generate private and public field and property as following

    private int myVar;

    public int MyProperty
    {
        get { return myVar; }
        set { myVar = value; }
    }
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号