简体   繁体   中英

Eclipse (pydev): Is it possible to assign a shortcut to send selection to the python console?

问题如此简单,以至于标题中包含了:) Eclipse(pydev):是否可以分配一个快捷方式将选择发送到python控制台?

If you mean to the interactive console, use ctrl+alt+enter in the pydev editor (version 1.5).

That action does a number of things:

  1. opens an interactive console view if it's not opened already
  2. sends the selected text to the console
  3. makes an execfile of the current editor (if no text is selected)

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM