🎓 Top 15 Udemy Courses (80-90% Discount): My Udemy Courses - Ramesh Fadatare — All my Udemy courses are real-time and project oriented courses.
▶️ Subscribe to My YouTube Channel (178K+ subscribers): Java Guides on YouTube
▶️ For AI, ChatGPT, Web, Tech, and Generative AI, subscribe to another channel: Ramesh Fadatare on YouTube
In this post, I show you how to auto-generate 'get' and 'set' accessors for TypeScript class in VisualStudio. The VisualStudio provides the refactor feature, this refactoring lets you quickly encapsulate a field in JavaScript and TypeScript.
Below gif image shows you how to auto-generate 'get' and 'set' accessors for TypeScript class in VisualStudio:
1. Select property.
2. Right click on selected property and choose Refactor option
3. Click on get and set accessors.
Comments
Post a Comment
Leave Comment