How to stop auto-insertion of "from ... import ..."

已回答

When I type "from mymod" and select one of the mymod* modules available, pycharm automatically insert an "import" statement just after, is there a way to disable this autoinsert which goes against my reflex of writing "import" myself ?

0

Unfortunately, I'm not able to reproduce the same locally. Do you have any custom live templates configured: https://www.jetbrains.com/help/pycharm/live-templates.html? Could you please record a small screencast that shows the problem?

0
Avatar
Permanently deleted user

Yes I have lots of live templates preconfigured, but none of them seems to deal with import (especially, python live templates don't deal with this).

This autocompletion only occurs when selecting a submodule in the popup shown below : when I press "enter" to select "case", "import" is auto-inserted after...

 

 

0

请先登录再写评论。