Skip to content

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

Closed

Description

@ivanz

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

Activity

  1. scgm11 commented on Nov 15, 2016

    @scgm11

    +1

  2. rubin55 commented on May 8, 2017

    @rubin55

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

  3. typekpb commented on Jun 11, 2017

    @typekpb

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

  4. gorkem commented on Nov 16, 2017

    @gorkem
    Contributor

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

  5. apemberton commented on Dec 9, 2017

    @apemberton

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

  6. gorkem commented on Dec 10, 2017

    @gorkem
    Contributor

    @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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions