Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 362
Anmol Gupta Avatar asked Aug 10 '15 09:08

Anmol Gupta


1 Answers

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

like image 190
knaos Avatar answered Sep 28 '22 03:09

knaos