问题
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