如何创建键盘快捷键以使用Canopy IDE在代码编辑器和ipython控制台之间切换?
我已经尝试根据代码编辑文档(http://docs.enthought.com/canopy/configure/editor-scripting-api.html#code-editor-scripting-commands)和ipython窗格脚本命令(http://docs.enthought.com/canopy/configure/ipython-scripting-api.html#ipython-pane-scripting-commands编写宏,但看不到解决方案。
作为一个例子,我有一个宏将执行当前的代码行(无需选择它),但是能够在执行后将光标切换回代码编辑器而不触摸鼠标会很好/触控板。
def run():
code_task = get_active_task()
code_editor = code_task.active_editor
cursor = code_editor.cursor
cursor.start_of_line()
cursor.next_line(select=True)
code_task.run_selection()
在Mac OS X 10.7.5上使用Canopy版本:1.1.1(64位)