Import reference to object - Shortcut
I forgot what is the shortcut for importing reference to object
Let's say I have two files:
polls/models.py
class Poll(db.Model):
...
polls/views.py
...
poll = Poll()
...
Poll will be underlined with red line, but when I place cursor somewhere inside 'Poll' string and click <shortcut_I_need> PyCharm will search for definition and import it for me.
I think it was smth like ALT + N.
Thanks
Let's say I have two files:
polls/models.py
class Poll(db.Model):
...
polls/views.py
...
poll = Poll()
...
Poll will be underlined with red line, but when I place cursor somewhere inside 'Poll' string and click <shortcut_I_need> PyCharm will search for definition and import it for me.
I think it was smth like ALT + N.
Thanks
1 条评论
排序方式
日期
投票数
Alt-Enter
请先登录再写评论。