vscode-importmagic
vscode-importmagic copied to clipboard
FR: Manual import of symbol under the cursor on a shortcut
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
.