Reputation: 21748
I'm using VSCode, Exist, a way to implement the methods that are within an interface in typescript using some shortcut keys or set for it.
I searched on the website of Microsoft, and the web, but I have not found anything.
Upvotes: 32
Views: 72777
Reputation: 3826
Update: The shortcut in VsCode for accessing this quick action is the usual one: Ctrl + . (period).
The built-in functionality of VsCode implementing an interface was first resolved for me by upgrading and using the Visual Studio Code -Insiders version instead.
See: VsCode Insiders for downloading this edition of VsCode.
Note that using the insiders editions might impact other aspects of your apps, as the versions are more beta than the public VsCode editions.
Upvotes: 12
Reputation: 1695
It will be "ctrl+.
" for visual studio code linux version or click on the light bulb icon
().
Upvotes: 11
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!
Upvotes: 50
Reputation: 31622
There isn't such a shortcut by default.
You can search for an extension on the marketplace. I didn't find any.
Upvotes: 3