Tuesday, June 12, 2018

TS Hero: Add an import to current file

One trick you may do with TypeScript Hero in Visual Studio Code 1.17.2 is that you may, from within a .ts file, press F1 and then start typing "TS Hero: Add an import to current file" to find an option for that name. It looks like Ctrl-Shift-I more directly is the hotkey for this. Once you trigger this effect you will be given a second place to type where you may find the thing you want by starting to type out the first of its letters and this will ultimately add an import statement.

No comments:

Post a Comment