Anmol Gupta
Anmol Gupta

Reputation: 2957

Shortcut to auto generate interface methods in Visual Studio Code?

I am coding in Typescript using Visual Studio Code. Is there a way to auto generate methods stubs which gets inherited in a class through an interface ?

Upvotes: 18

Views: 18059

Answers (2)

knaos
knaos

Reputation: 850

UPDATE: VS Code now supports this functionality out of the box. Just add the interface, the compiler will highlight the controller with red, right click on the light bulb on the left and click implement interface. Enjoy!

enter image description here

Upvotes: 10

basarat
basarat

Reputation: 276235

Is there a way to auto generate methods stubs which gets inherited in a class through an interface

Not out of the box. And plugin API interface is not public yet.

Upvotes: 3

Related Questions