快捷键 Ctrl + Alt + R 在 PyCharm 中不起作用
我在 Windows 计算机上使用 PyCharm,并且正在运行找到的教程 此处。
它不断告诉我使用 Ctrl+Alt+R 作为某种命令。我不知道我做了什么,但这对我来说在 Windows 上确实很甜蜜。我想是因为我正在使用Eclipse快捷方式?
不管怎样,有人知道这个东西的菜单项是什么吗?那么使用 GUI 我可以找到它吗?或者甚至它叫什么?
I'm using PyCharm on a Windows machine, and I'm running the tutorial found here.
It keeps on telling me to use Ctrl+Alt+R as some sort of command. I don't know what I did, but this does sweet diddly for me on Windows. I think because I'm using Eclipse shortcuts?
Anyway, anyone have any idea what the menu item is for this thing? So using the GUI I can find it? Or even what it is called?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Ctrl + Alt + R 是工具| 的热键。运行manage.py任务菜单项。
它似乎在 Eclipse 键盘映射中未映射。打开 IDE 设置 | Keymap 部分,在其中搜索“manage.py”并将操作映射到热键。
Ctrl + Alt + R is a hotkey for Tools | Run manage.py task menu item.
It seems to be unmapped in Eclipse keymap. Open IDE Settings | Keymap section, search there for 'manage.py' and map the action to a hotkey.
当您用其他名称重命名
settings.py
文件或项目目录
名称时,也会出现此问题。在这种情况下,您需要执行以下步骤。在“设置/首选项”对话框 (Ctrl+Alt+S) 的“语言和框架”节点下,单击 Django。
选中设置框。如果您已将
settings.py
文件重命名或移动到其他文件夹中,则它应该为空。在这里您必须选择新的settings.py
文件。单击“确定”并现在 Ctrl+Alt+R 应该可以工作了。
This issue also comes when you rename
settings.py
file or theproject directory
name with something else. In this case you need to follow these steps.In the Settings/Preferences dialog (Ctrl+Alt+S) under the Languages and Frameworks node, click Django.
Check the setting box. It should be blank if you have renamed or moved
settings.py
file into other folder. Here you have to select the newsettings.py
file. click ok andnow Ctrl+Alt+R should work.