typescriptvisual-studio-code

How to generate Getter and Setter for Typescript in VSCode


I'm used to using webstorm to generate getter and setter for classes.

Is there any way to do it with VSCode in short steps?


Solution

  • A VS Code plugin that works to create Java style getters and setters (accessor and mutator methods) is Wilson Godoi's TypeScript's Getters and Setters Object Oriented Programming Style.

    https://marketplace.visualstudio.com/items?itemName=Wilson-Godoi.wg-getters-and-setters

    enter image description here