question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is anyone working on automatic use (import) QuickFix?

See original GitHub issue

I am very much used to the python plugin’s “Import this name” functionality, which allows you to add an import to the header of the file with a quick ⌘+Enter when you’ve mentioned a module or a class name that needs importing.

It saves a good chunk of my time, since I don’t need to browse to the top of the file and write the code for it.

It also reduces the overhead of looking through the previous imports and takes care of cases like:

use foo::bar;
use foo::baz;

Which it collapses into:

use foo::{bar, baz};

In any case - I would like to see this as the functionality of this plugin and would be willing to take this upon myself, in any case no one is already working on it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
alygincommented, Jul 20, 2017

Would be great to have it. I just want to mention a couple of related issues:

  • this issue is a duplicate of #1366
  • a short discussion of the feature with some useful information can be found in #949
0reactions
vlad20012commented, Sep 16, 2017

Moved to #1737

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quick fix - Auto-Import doesn't work #999 - GitHub
Using locally. Quick Fix -> Import does nothing. However Source Action -> Organize Imports works fine.
Read more >
New to neovim, how to get the quick fix menu to import like ...
Hi guys, I been using nvim for a couple of days without using LSP i see that a lot of people use it...
Read more >
Visual Studio Code - Auto Imports / Quick Fix does not work
After that VS Code supposed to start auto-import stuff from them. ... import "Quick fix" while the auto-complete feature will keep working.
Read more >
Wes Bos on Twitter: "I love love love auto-import for VS Code ...
I love love love auto-import for VS Code. Does anyone know of a way to do it for an entire file? When I...
Read more >
How to Use Visual Studio Code with Java? - Baeldung
In this article, we'll learn how to configure Visual Studio Code with Java, and how to use its basic features for this language....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found