How can we generate getters and setters in Visual Studio?

后端 未结 16 2272
盖世英雄少女心
盖世英雄少女心 2020-12-07 07:46

By \"generate\", I mean auto-generation of the code necessary for a particular selected (set of) variable(s).

But any more explicit explication or comment on good pr

16条回答
  •  甜味超标
    2020-12-07 08:07

    First get Extension just press (Ctrl + Shift + X) and install getter setter ....

    After this, just select your variable and right click. Go to Command palette...

    And type getter ... It will suggest generate get and set methods. Click on this...

提交回复
热议问题