Extend auto import choices 关注
Is there any possibility of extending the list of choices for auto-importing?
I have modules like:
apps/
+--- comments/
core/
+--- non_core_apps/
| +---init.py
inside the init:
from apps import comments as apps_comments
I want to configure or "trick" Pycharm into suggesting imports from that non_core_apps submodule.
So in case I type apps_comments Pycharm should suggest:
from non_core_apps import apps_comments
in case I type Comment ( a class contained by apps_comments module) Pycham should suggest:
from non_core_apps.apps_comments import Comment
from apps.comments import Comment
and so on.
1 条评论
排序方式
日期
投票数

评论操作
固定链接
Hi, have you tried the extended completion? (Ctrl/Cmd+Space two times). The second press of a shortcut should expand the scope of completion.
请先登录再写评论。