4 ms·
Still no auto-import on Typescript. The main reason I use Webstorm over VSCode currently. What I am talking about: * new Foo| * <Ctrl+Space> * (Automa
by pookeh 10y ago
Still no auto-import on Typescript. The main reason I use Webstorm over VSCode currently.
What I am talking about:
* new Foo|
* <Ctrl+Space>
* (Automatically inserted by editor top of the file where imports are) import {Foo} from "../relativePath/to/Foo.ts"
* new Foo(param);|
Working on a large TS codebase without this is absurd. Webstorm is way ahead of VSCode in this area, including things like multiple named imports like:
* import {Foo, Bar} from "../../foobar.ts"
Additionally, things like refactoring filename that affect the all imports that reference that filename -- not sure if that got added in VSCode recently tho.
- whatever_dude 10y agoNor "organize import", you're right. I became too used to this in other editors, and now my (manually managed) imports are a royal mess.
- seesharp 10y agoThere's actually an extension which can do this: https://marketplace.visualstudio.com/items?itemName=steoates.autoimport https://marketplace.visualstudio.com/items?itemName=steoates....