How can we generate getters and setters in Visual Studio?

Paul picture Paul · Aug 6, 2008 · Viewed 450.7k times · Source

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 practice is welcome.

Answer

Orion Edwards picture Orion Edwards · Aug 6, 2008

Rather than using Ctrl + K, X you can also just type prop and then hit Tab twice.