typescript.java
typescript.java copied to clipboard
Ctrl+Shift+O: Organize imports
Remove unnecessary imports and sort them
@micaelgallego please suggest this idea to TypeScript. Thanks!
Once tsserver will be extensible, we could create a plugin like https://github.com/buehler/typescript-hero
See TypeScript issue https://github.com/Microsoft/TypeScript/issues/10020
@micaelgallego tslint supports a rule for ordered imports. This rule also supports Quickfix.
There is also a no-unused-variable, which checks for unused imports and supports quickfix too.
So as long as there is no "Organize Imports" you could use this workaround instead.