python IDE(混合了 KDE 和 emacs)

发布于 2024-12-28 03:23:48 字数 486 浏览 1 评论 0 原文

我正在使用文本编辑器(Sublime Text)进行 Python 编程。最新版本非常酷,但我想知道是否有任何(免费)可用于 Python 的 IDE 满足以下两个标准(我关心的标准)

  1. 为名称/方法提供自动建议,例如每当您开始键入类的名称时,Visual Studio 或 KDE(至少在 C++ 版本中)。 Sublime text 会跟踪在打开的窗口中输入的单词并提供建议,但它会返回所有作为建议输入的单词。

  2. 4 个空格后缩进锁定。 Emacs 有一个非常酷的属性,您可以将缩进锁定为四个空格,并且对于给定的块,无论您按 Tab 和空格多少次,它都不会超出这些空格。当执行 ctrl + c 和 ctrl + v 时,这很漂亮,因为只需使用一个选项卡即可处理缩进。我相信这也可以在 KDE 中完成。

我使用 KDE 进行 C++ 开发,它非常酷。 额外的加分点:如果我可以定义自己的视觉环境... :P 像插件..

有什么建议吗?

I am using a text editor (Sublime Text) for programming in Python. The latest version is pretty cool, but I was wondering if there are any (free) IDEs available for Python which meet the following two criteria (the ones I care about)

  1. Gives auto-suggestions for the names/methods, like in Visual Studio or KDE (at least in C++ version) whenever you start typing the name of the class. Sublime text keeps a track of the words which have been typed in the windows open and does suggests, but it returns all the words typed as suggestions.

  2. Indentation lock after 4 spaces. Emacs has this very cool property where you can lock the indention to four spaces and no matter how many times you press tab and space it doesn't goe beyond those spaces, for a given block. This is nifty when doing ctrl + c and ctrl + v as just with one tab, the indentation is taken care of. I believe this can be done in KDE also.

I used KDE for C++ development and it was pretty cool.
Additional plus point: if I can define my own visual environment... :P like plugins..

Any suggestions?

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

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

发布评论

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

评论(3

十年不长 2025-01-04 03:23:48

您可以尝试一下Eclipse。它有一个名为 PyDev 的插件,可让您在 python 中工作。
看看这里 使用 PyDev 和 Eclipse 进行 Python 开发

You can give Eclipse a try. It has a plugin named PyDev which lets you work in python.
Have a look here Python Development with PyDev and Eclipse

生生不灭 2025-01-04 03:23:48

请记住,#1 在 Python 中实际上是不可能的。有些工具对此进行了尝试,但总是存在很大的局限性。考虑这段代码:

if foo():
   bar = "quux"
else:
   bar = [42]

现在,当您在下一行中输入 bar. 时,应该建议什么方法?那些用于字符串,还是那些用于列表?这只是冰山一角。

Keep in mind that #1 is not really possible in Python. Some tools take a stab at it, but there are always significant limitations. Consider this code:

if foo():
   bar = "quux"
else:
   bar = [42]

Now when you type bar. on the following line, what methods should be suggested? Those for strings, or those for lists? And that's just the tip of the iceberg.

×纯※雪 2025-01-04 03:23:48

AptanaPyCharm.后者需要花钱,但它仍然是一个很棒的 Python IDE。

Geany 是一个基于文本的 IDE,它不像其他两个那样强大,但它可以提供一些建议。不过,我对空间强制执行并不是 100% 确定。

There are some decent IDEs out there in Aptana and PyCharm. The latter costs money, but it's still a great Python IDE.

Geany is a text-based IDE which isn't as powerful as the other two, but it can do some suggestions. I'm not 100% sure about the space enforcing though.

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