VS Code tips — Generating get and set accessors in TypeScript

preview_player
Показать описание
Today's VS Code tip: the generate 'get' and 'set' accessors refactoring

Use the "generate 'get' and 'set' accessors" refactoring in #TypeScript to quickly encapsulate class properties.

This is useful for both encapsulating fields and to customize the behavior of get/set.
Рекомендации по теме
Комментарии
Автор

Can i generate it in bulk instead of highlighting each line?

ucLeTrung-hfbl
Автор

what if it says no refactors are avaliable ?

munimbaig
Автор

which extension you have used for this in vs code

sujitpatil
Автор

i love how everyone can just magicaly do this but dont share the extension they use

roywilliamvermeulen