GEdit/Python执行插件? [英] GEdit/Python execution plugin?

查看:70
本文介绍了GEdit/Python执行插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始使用GEdit和各种插件作为我的IDE学习python.

I'm just starting out learning python with GEdit plus various plugins as my IDE.

Visual Studio/F#具有一项功能,该功能允许突出显示代码窗口中的一段文本,然后在按键时在F#控制台中执行该文本.

Visual Studio/F# has a feature which permits the highlighting on a piece of text in the code window which then, on a keypress, gets executed in the F# console.

是否有类似的工具/插件可以为GEdit/Python启用这种行为?我确实有各种执行类型的插件(在Python中运行,更好的Python控制台),但是它们没有给我这种特殊的行为-至少我不确定如何配置它们来实现这一功能.我发现它很有用,因为在学习python时,我有一些测试代码,我想执行特定的单个行或一小段代码(而不是一个完整的文件),以尝试了解它们在做什么(复制/粘贴可以得到一个有点累)

Is there a similar facility/plugin which would enable this sort of behaviour for GEdit/Python? I do have various execution type plugins (Run In Python,Better Python Console) but they don't give me this particular behaviour - or at least I'm not sure how to configure them to give me this. I find it useful because in learning python, I have some test code I want to execute particular individual lines or small segments of code (rather then a complete file) to try and understand what they are doing (and the copy/paste can get a bit tiresome)

...或者也许有更好的方法进行代码探索?

... or perhaps there is a better way to do code exploration?

很多次

西蒙(Simon)

推荐答案

要回答您的第二个问题,并希望能指导您朝着更满意的方向发展,我认为您应该考虑尝试一些不同的编辑器.有许多功能比GEdit具有更强大的代码探索功能.看看这篇文章:

To answer your second question, and hopefully guide you in a direction you'll be happier with, I think you ought to consider trying some different editors. There are many with more powerful code exploration features than GEdit has. Check out this post:

针对Python使用哪种IDE?

这篇关于GEdit/Python执行插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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