LiClipse并在控制台快捷方式中执行代码? [英] LiClipse and execute codes in console shortcuts?

查看:218
本文介绍了LiClipse并在控制台快捷方式中执行代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于Eclipse PyDev,您可以选择几行代码,然后按Ctrl + Shift + Enter在交互式控制台中执行代码,但使用LiClipse,只是删除所选代码,我不能在任何地方提到这个, 任何人?

解决方案

好吧,这是PyDev的一个功能,所以,它只有工作,如果你打开。 PyDev编辑器(即:在首选项>通用>编辑器>文件关联中检查'* .py'被标记为使用'Python Editor'打开 - 对于PyDev - 而不是'LiClipse Python编辑器' p>

或者,您可以右键单击文件,然后选择使用Python编辑器打开。



Alt + Enter应该能为你工作(注意,在最新版本中,Ctrl + Alt + Enter真的是打开编辑器,但F2是逐行发送到控制台的推荐方式...参见: a href =http://pydev.org/manual_adv_interactive_console.html =nofollow> http://pydev.org/manual_adv_interactive_console.html 了解详情)。


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?

解决方案

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).

这篇关于LiClipse并在控制台快捷方式中执行代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆