python 编辑器/IDE 显示可用功能,更重要的是它们的文档

发布于 2024-11-18 11:16:17 字数 338 浏览 1 评论 0原文

f = open(filename, 'r')
strings = f.read().lower()

我想要一个像 Visual Studio 一样工作的 Python 编辑器/IDE。在上面输入“f”后。它向我显示了可用函数及其文档的列表(不要等待 ctrl-space)。就像 Visual Express C# 一样。最好它也显示所有变量的自动完成列表。有这样的编辑器吗?

我已经经历了几个建议 - eclipse , vim , emacs , pyscripter , komodo 等等。厌倦了尝试。终于问了。 帮帮我吧。

我检查过类似的问题,没有人回答我的问题。

f = open(filename, 'r')
strings = f.read().lower()

I want a python editor/ide that works like visual studio. In the above after typing 'f.' it shows me the list of available functions and their documentation(DO NOT WAIT FOR ctrl-space). Just like visual express C#. Also preferably it shows autocomplete lists of all variables as well. Is there such an editor?

I have gone through several suggestions - eclipse , vim , emacs , pyscripter, komodo etc etc. Tired of trying. finally asking.
Help me out.

I have checked similar questions, none answered my query.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

睫毛溺水了 2024-11-25 11:16:17

尝试看看 PyCharm。它不是开源的,但它是相当便宜且功能强大的 IDE:

http://www.jetbrains.com/pycharm/< /a>
http://www.jetbrains.com/pycharm/features/index.html

关键字、类的代码完成,
变量等 — Ctrl+空格键。编辑
建议是上下文相关的并且
建议最合适的选项。

快速定义/文档视图
— 查看对象定义或
文档就位且不会丢失
您的背景

Try to take a look at PyCharm. It not open source but it is quite cheap and powerful IDE:

http://www.jetbrains.com/pycharm/
http://www.jetbrains.com/pycharm/features/index.html

Code completion for keywords, classes,
variables, etc. — Ctrl+Space. Editor
suggestions are context-aware and
suggest most appropriate options.

Quick definition / documentation view
— see the object definition or
documentation in-place without losing
your context

一江春梦 2024-11-25 11:16:17

你可以试试Netbeans。它是免费的。它的一些功能 -

  • 它显示函数列表及其文档以及变量但按 Ctrl+Space。 (我不知道为什么你不想按Ctrl+Space,否则每次你开始写东西时,你都会被弹出窗口打扰。)
  • 它还强调了未使用的变量,以及其他常见的东西,例如语法突出显示,匹配右括号等。
  • 您可以使用折射器轻松更改函数/类中的变量名称。
  • 您可以在项目中找到特定名称的用法
  • 。您可以使用导航器一目了然地查看所有类、它们的方法和属性、函数和全局变量。
  • 它有一个项目管理器,
  • 您可以调试您的项目。
  • (无论你还能想到什么。)

它还有很多其他功能......我无法在这里一一列举。

它是最好的开源 IDE!

You can try Netbeans. It is free. Some of its features -

  • It shows a list of functions and their documentations as well as variables but on Ctrl+Space. (I don't know why you don't want to hit Ctrl+Space, otherwise every time you start writing something, you will be disturbed by a popup.)
  • It also underlines unused variables, plus the other usual things like syntax highlighting, matching closing brackets, etc.
  • You can easily change the name of variables within a function/class using the refractor.
  • You can find usages of a particular names within your project
  • You can view all your classes, their methods and attributes, functions and global variables at a glance using the navigator.
  • It has a project manager
  • You can debug your project.
  • (whatever else you can possibly think of.)

It has lots of other features... I can't name them all here.

It is the best opensource IDE !

霊感 2024-11-25 11:16:17

我可以确认 wingide 代码完成是这样工作的。我尝试了你在这里的例子并且它有效

I can confirm that wingide code completion works like that. I tried the example you have here and it worked

oО清风挽发oО 2024-11-25 11:16:17

我用 Pydev,用 Vim 后速度快很多!您可以快速导航项目树,在选项卡中打开必要的文件,还可以内联监视类/方法定义,甚至可以“跳转”到该文件。您还可以将项目标记为“Django 项目”,设置 python 路径后,它确实有助于减少错误并快速编码。此外,我还从多文件搜索/替换中受益匪浅。推荐一下! :)

注意:如果您使用 Linux,请使用 Oracle 站点上的二进制文件替换 OpenJRE。不然会出现裂纹。

I use Pydev, after Vim it speeds a lot! You can quickly navigate your project tree, in tabs you open necessary files, also inline watching of class/method definition, you can even 'jump' to that file. Also you can mark project as 'Django project', after setting python paths it really helps make less mistakes and code quickly. Also I've very much benefited multi-file search/replace. Recommend it! :)

Note: If you use Linux, replase OpenJRE with binary from Oracle's site. Otherwise there'll be craches.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文