LiClipse and execute codes in console shortcuts?

十年热恋 提交于 2019-12-25 02:55:42

问题


For Eclipse PyDev, you can select a few lines of codes, then hit Ctrl+Shift+Enter to execute the codes in interactive console, but with LiClipse, that simply removes the selected codes, I can't find anywhere mentioning this, anyone?


回答1:


Well, this is a feature of PyDev, so, it'll only work if you open the .py files with the PyDev editor (i.e.: in preferences > general > editors > file associations check that '*.py' is marked to be opened with the 'Python Editor' -- for PyDev -- and not the 'LiClipse Python Editor').

Alternatively you can right click a file and choose 'open with > Python Editor'.

After that, Ctrl+Alt+Enter should work for you (note that in the latest version, Ctrl+Alt+Enter is really for opening the editor, but F2 is the recommended way of sending things line-by-line to the console... See: http://pydev.org/manual_adv_interactive_console.html for details).



来源:https://stackoverflow.com/questions/24380281/liclipse-and-execute-codes-in-console-shortcuts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!