Question so easy that fitted in the title :) Eclipse (pydev): Is it possible to assign a shortcut to send selection to the python console?
问题很简单,适合标题:) Eclipse(pydev):是否可以指定一个快捷方式将选择发送到python控制台?
2 个解决方案
#1
1
You can only assign shortcuts to "actions". Actions bound to buttons (for example, the toolbar) and menus. If you have a menu for this, you can bind a key to it. If not, then you will have to open an enhancement request in the pydev project.
您只能为“操作”指定快捷方式。绑定到按钮(例如,工具栏)和菜单的操作。如果您有此菜单,则可以将密钥绑定到该菜单。如果没有,那么您将必须在pydev项目中打开增强请求。
#2
1
If you mean to the interactive console, use ctrl+alt+enter in the pydev editor (version 1.5).
如果您指的是交互式控制台,请在pydev编辑器(版本1.5)中使用ctrl + alt + enter。
That action does a number of things:
这个动作做了很多事情:
- opens an interactive console view if it's not opened already
- sends the selected text to the console
- makes an execfile of the current editor (if no text is selected)
如果尚未打开,则打开交互式控制台视图
将所选文本发送到控制台
制作当前编辑器的exec文件(如果没有选择文本)
#1
1
You can only assign shortcuts to "actions". Actions bound to buttons (for example, the toolbar) and menus. If you have a menu for this, you can bind a key to it. If not, then you will have to open an enhancement request in the pydev project.
您只能为“操作”指定快捷方式。绑定到按钮(例如,工具栏)和菜单的操作。如果您有此菜单,则可以将密钥绑定到该菜单。如果没有,那么您将必须在pydev项目中打开增强请求。
#2
1
If you mean to the interactive console, use ctrl+alt+enter in the pydev editor (version 1.5).
如果您指的是交互式控制台,请在pydev编辑器(版本1.5)中使用ctrl + alt + enter。
That action does a number of things:
这个动作做了很多事情:
- opens an interactive console view if it's not opened already
- sends the selected text to the console
- makes an execfile of the current editor (if no text is selected)
如果尚未打开,则打开交互式控制台视图
将所选文本发送到控制台
制作当前编辑器的exec文件(如果没有选择文本)