Skip to content
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

Add "add missing import" quick fix/action #56

Closed
ivanz opened this issue Oct 10, 2016 · 6 comments
Closed

Add "add missing import" quick fix/action #56

ivanz opened this issue Oct 10, 2016 · 6 comments

Comments

@ivanz
Copy link

ivanz commented Oct 10, 2016

In order to quickly fix missing imports when pasting code or writing code - it would be great to have a quick fix to "add import" similarly to e.g. the C# vscode extension or various Java IDEs

@scgm11
Copy link

scgm11 commented Nov 15, 2016

+1

@rubin55
Copy link

rubin55 commented May 8, 2017

When! This is a great feature to have, especially since you can have quite a list of imports when you get going :-).

@typekpb
Copy link

typekpb commented Jun 11, 2017

well, as I'm used to from the eclipse world, I'd prefer to have: "Organize imports" functionality => add missing + remove unused (as those are already reported as warnings in "Problems" section).

To go one step further I'd love to see this functionality on the whole package as well (all files within would have imports organized).

ansyral pushed a commit to ansyral/vscode-java that referenced this issue Oct 11, 2017
* add activate event in telemetry

* revert correlationId
@gorkem
Copy link
Contributor

gorkem commented Nov 16, 2017

This is now available bot as part of code assist and a code action. closing

@fbricon fbricon closed this as completed Nov 16, 2017
@apemberton
Copy link

Does this feature have the ability to "remove unused imports"?

@gorkem
Copy link
Contributor

gorkem commented Dec 10, 2017

@apemberton yes, it does. It is also available as an action on the command palette

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

7 participants