vscode-importmagic icon indicating copy to clipboard operation
vscode-importmagic copied to clipboard

FR: Manual import of symbol under the cursor on a shortcut

Open mrkafk opened this issue 6 years ago • 0 comments

It would be nice to be able to explicitly indicate symbol to import on a shortcut while cursor is on the symbol

An extended version could have separate shortcuts for doing particular form of imports, e.g. from symbol import ... or import symbol.

E.g. for doing from imports, one could type shutil.rmtree, press a shortcut and have from shutil import rmtree added at the top and have this shutil.rmtree reference replaced with rmtree.

mrkafk avatar Feb 01 '19 10:02 mrkafk