Skip to content

Ctrl+Shift+O: Organize imports #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
micaelgallego opened this issue Mar 12, 2016 · 4 comments
Open

Ctrl+Shift+O: Organize imports #24

micaelgallego opened this issue Mar 12, 2016 · 4 comments

Comments

@micaelgallego
Copy link

Remove unnecessary imports and sort them

@angelozerr
Copy link
Owner

@micaelgallego please suggest this idea to TypeScript. Thanks!

@angelozerr angelozerr changed the title Organize imports Ctrl+Shift+ Organize imports Sep 14, 2016
@angelozerr angelozerr changed the title Ctrl+Shift+ Organize imports Ctrl+Shift+O: Organize imports Sep 14, 2016
@angelozerr
Copy link
Owner

Once tsserver will be extensible, we could create a plugin like https://github.com/buehler/typescript-hero

@angelozerr
Copy link
Owner

See TypeScript issue microsoft/TypeScript#10020

@probert94
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants