您的位置:首页 > 编程语言 > Python开发

04-03.eri-test 用于IntelliJ IDEA的7个必备Python插件

2020-04-22 12:15 766 查看
[总计:2平均:5/5]

奥林巴斯的顶端是如此寂寞。

永恒的众神之王宙斯在试图保持统治期间面临着一些艰难时期。 阎王在控制权之争中几乎篡夺了他的兄弟宙斯。 随着战斗的进行,大多数神灵都站在宙斯的身边,因为谁想搞砸一个射闪电的家伙,但是一些更加不满的神灵则站在了哈德斯的身边,战斗也就此展开。

后端编程世界与Mount Olympus相似。 争夺霸权总是存在激烈的战斗,而在2020年,Java和Python之间的战斗仍将继续。 并且,就像古希腊人一样,大多数开发人员选择“崇拜”一种或两种常用的编程语言。 但是,与古希腊不同,现代程序员(略)更灵活。

那里有编码多语种,他们涉足多种后端编程语言,并使用一个IDE来完成。 有些人可能称他们为亵渎者,我们更喜欢将他们视为和平缔造者。

如果您碰巧是其中之一,并且现在希望在Intellij IDEA中有效地使用Python(或Jython – Java和Python的混合体)进行编程–这篇文章适合您! 我们整理了一系列插件,这些插件添加了Python编码功能,还可以帮助您更高效地完成此操作。

Intellij IDEA和PyCharm中的Python

在我们深入介绍Intellij IDEA上的Python支持之前,值得一提的是JetBrains针对Python和Django的独立IDE – PyCharm. With a free community edition of PyCharm available for download (much like Intellij IDEA Community Edition for Java development) it’s no wonder PyCharm is the most popular standalone Python IDE and is widely favored by the pros. 它为项目管理,IDE设置和其他功能提供了更简单的UI.

与PyCharm相比,Intellij IDEA Python插件的主要优势是其全面的Jython支持功能(跨语言导航,完成和重构)。 PyCharm仅支持Jython作为运行应用程序的运行时。 因此,如果您在项目中使用Java / Python集成,仅靠PyCharm就无法完成工作。

Another reason why this relationship between JetBrains IDEs is relevant is the fact that the plugins supported in PyCharm are usually compatible with Intellij IDEA. This makes perfect sense as it is based on the same IDE framework by Intellij.

因此,让我们从基础开始:安装插件以在Intellij IDEA中启用Python支持。

如何将Python添加到Intellij IDEA

要为您的Intellij IDEA提供JetBrains IDE流行的PyCharm风格的所有功能,您需要做的就是安装JetBrains的官方Python插件。

The only thing to check before you download and install the Python plugin is the type of Intellij IDEA license you have. The Python plugin (that comes packaged in PyCharm) is compatible with the paid versions of Intellij IDEA (rather than the free community edition).

7个用于Intellij IDEA的Python插件

基本的插件将为您提供Python脚本的智能编辑功能,从而有效地扩展Intellij IDEA的功能,使其与PyCharm的功能相匹配,以解决所有与Python有关的问题和目的。 但是,像您这样的软件专业人员也可以使用一些额外的插件,以使您在Intellij IDEA上进行Python开发更加有效和高效。

1. Pylint

As the name suggests, this plugin is a Python linter. It provides both real-time and on-demand scanning of Python files with Pylint from within you Intellij IDEA. Pylint是一个开源项目,因此可以完全根据您的需求进行定制. In addition, Pylint has extensive documentation on the plugin website.

2. Python Smart Execute

这个方便的小插件是“控制台中执行行”命令的明智选择。 它自动确定要发送到Python控制台的行数,并且可以通过键盘快捷键轻松访问:alt shift A.

It’s worth noting that this plugin may become obsolete in the upcoming version of Intellij IDEA and PyCharm, as a request to implement it in JetBrains IDEs has been submitted in late 2019.

3. Tabnine

从严格意义上讲,Tapnine不是严格意义上的Python插件,它是编程生产力工具,可帮助您更快地编写更好的代码。 Tabnine使用GPT-2以Python和其他语言提供高度准确的代码预测。 Tabnine现在是Codota家族的一员,但老实说,我们一直喜欢它的惊人准确性。

4. MyPy

Mypy是一个Python的可选静态类型检查器和源代码分析器,旨在结合动态(或“鸭子”)类型和静态类型的优点。 除其他外,它查找编程错误,帮助实施编码标准并嗅探某些代码气味。

这个来自JetBrains插件市场的插件将MyPy集成到了Intellij IDEA中. If you need some guidance, the MyPy website features extensive documentation to help you install and use MyPy to improve your Python code.

5. DeepBugs for Python

该插件由JetBrains研究部门开发,有望实现使用深度学习模型找出Python代码中潜在的错误和质量问题。 DeepBugs可以根据提取的代码语义来检测错误,例如错误的函数参数,错误的比较以及其他错误。

6. Live Coding in Python

为什么要等待运行程序才能看到魔术的发生? 这个插件可以让你键入时运行Python代码。 它将在Intellij IDEA工作区右侧的专用面板中显示变量值,matplotlib,Pyglet或turtle图形。

7. Python Enhancements

我们列表中的最后一个插件很方便可以在Python代码上运行的三项检查的集合,以尝试检测潜在的死代码和生成样板代码的意图。 该插件将在您的代码中查找潜在未使用的类,函数(包括方法)和名称(在全局和类级别的分配中)。

超越Python –其他Intellij IDEA插件

如果您是经验丰富的Intellij IDEA用户,那么您可能已经安装了喜爱的IDE插件和主题. Just in case you don’t (or if you’re looking to expand your collection with a few time-saving productivity-improving gems), we’ve collected the top 21 plugins for Intellij IDEA. Our extensive list includes all you need to make the most of Intellij IDEA as a development environment – from AI coding assistants (like our own Codota plugin) to fun additions like the Nyan Cat progress bar.



分享这个:

from: https://blog.codota.com/python-plugins-for-intellij-idea/

  • 点赞
  • 收藏
  • 分享
  • 文章举报
cumsg88486460 发布了33 篇原创文章 · 获赞 0 · 访问量 268 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: