4 ms·
I work on TS and JS support for VSCode. Try moving the cursor into red squiggles for the missing symbol and then clicking on the lightbulb in the gutter or hitt
by mattbierner 10y ago
I work on TS and JS support for VSCode. Try moving the cursor into red squiggles for the missing symbol and then clicking on the lightbulb in the gutter or hitting cmd+period. This will bring up the quick fix menu for adding missing imports.
We don't support automatically adding imports as you type, but this is something we are looking into.
If you see any problems with the feature or have any suggestions on how it could be improved, please open an issue: https://github.com/Microsoft/vscode/issues/new https://github.com/Microsoft/vscode/issues/new
- bcherny 10y agoNo lightbulb, but cmd+. did it -- Thanks! Any way to format the import too (we use single quotes and no semicolon, enforced by TSLint)? Awesome job on JS/TS integration by the way. I've used Frontpage, Dreamweaver, Notepad++, Sublime, Atom, Vi, Webstorm, and Intellij in the past, and editing TS in VSCode beats all those other editors by a mile. Keep it up!!