25

I use Visual Studio Code to develop Angular 2 apps in Typescript. Is there any means to save the effort of writing constructors with its parameter list myself?

Would be great if the IDE could generate the constructor based on the class members like e.g. Eclipse can do it for Java.

Emdee
  • 1,689
  • 5
  • 22
  • 35
  • 1
    SO doesn't do recommendations and that's the reason why I'll vote to close the question. However, there is a VSCode extention that does something like that. https://marketplace.visualstudio.com/items?itemName=DSKWRK.vscode-generate-getter-setter – toskv Dec 31 '16 at 12:44

1 Answers1

14

Just install TypeScript Toolbox :

https://marketplace.visualstudio.com/items?itemName=DSKWRK.vscode-generate-getter-setter

You can generate Constructor, Getter and setters ....