PyDev不执行将快捷键发送到控制台的快捷方式 [英] PyDev doesn't execute shortcut to send current line to console
问题描述
根据此问题和
According to this question and the PyDev documentation on the interactive console, pressing F2 should send the current line from the PyDev editor to the Python console.
我在Python编辑器中打开了一个Python文件(通过将其打开为打开方式"->"Python编辑器"来确保此文件),并通过按 Ctrl 启动了控制台会话+ 输入.但是,当我按 F2 时,什么也没发生.我必须选择感兴趣的行,然后使用 Ctrl + Enter 将其发送到控制台.
I have a Python file open in the Python editor (I made sure of this by opening it "Open With" --> "Python Editor") and have started a console session by pressing Ctrl+Enter. Nonetheless, when I press F2, nothing happens. I have to select the line I'm interested in and send it to the console with Ctrl+Enter.
我已经检查了窗口"->首选项"->常规"->键"下的键绑定选项,并且看不到命令控制台中的执行行"设置之间的任何差异"(映射到 F2 )和交互控制台"(Interactive Console),它映射到 Ctrl + Alt + Enter .但是,第二条命令有效,而第一条命令无效.我也尝试过将命令映射到其他键,但这根本没有改变结果.关于如何使用此命令的任何提示?
I've checked my keybinding options under "Window" --> "Preferences" --> "General" --> "Keys" and am unable to see any differences between the settings for the commands "Execute line in console", which is mapped to F2, and "Interactive Console", which is mapped to Ctrl+Alt+Enter. However, the second command works whereas the first does not. I've also tried mapping the command to other keys, but that hasn't changed the results at all. Any tips on how I can use this command?
推荐答案
我遇到了这个问题.除F2之外,所有快捷方式均有效. 我尝试了很多事情都没有成功. 但是最终.只需重新启动Eclipse就可以解决问题.
I had that problem. All shortcuts worked except F2. I tried many things without success. But in the end. Simply restarting Eclipse solved the problem.
这篇关于PyDev不执行将快捷键发送到控制台的快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!