简体   繁体   English

python - atom IDE 如何启用自动完成代码以查看模块中的所有功能

[英]python - atom IDE how to enable auto-complete code to see all functions from a module

I am using atom IDE for my python projects.我正在为我的 python 项目使用 atom IDE。 there are auto-complete suggestions in some cases but I'd like to know if it's possible to have a list of all possible functions that a imported module has, for instance if i import import urllib when I type urlib.在某些情况下有自动完成建议,但我想知道是否可以列出导入模块具有的所有可能功能的列表,例如,如果我在键入import urllib时导入import urllib urlib. and press (ctrl+tab) would like to see a list with the possible functions/methods to use.并按 (ctrl+tab) 想要查看包含可能使用的功能/方法的列表。

Is that possible?那可能吗? Thanks谢谢

I found the solution for my own question.我找到了我自己问题的解决方案。 Actually I had the wrong plugin installed!其实我安装了错误的插件!

So, in the IDE, edit->preferences, and in the packages section just typed autocomplete-python and press install button.因此,在 IDE 中,编辑->首选项,在包部分中只需键入autocomplete-python并按安装按钮。

After restart Atom, it should start work :)重启 Atom 后,它应该开始工作了 :)

Atom is getting various modifications. Atom 正在进行各种修改。 Autocomplete-python package is a handy package which helps code faster. Autocomplete-python 包是一个方便的包,可以帮助更快地编写代码。 The way to install it has changed.安装方式已经改变。 In all new Atom editor go to File->Settings->install search for autocomplete-python and click on install.在所有新的 Atom 编辑器中,转到 File->Settings->install 搜索autocomplete-python并单击安装。 Voila its done, restart Atom is not required and you will see the difference with next time you edit python code.瞧,它完成了,不需要重新启动 Atom,您将在下次编辑 python 代码时看到不同之处。

Deb黛布

Atom have a built-in package called autocomplete-plus . Atom 有一个名为autocomplete-plus的内置包。 You can extends its functionalities by installing autocomplete-plus-python-jedi .您可以通过安装autocomplete-plus-python-jedi来扩展其功能。

from Atom page:从原子页面:

Description:描述:

This is a provider for the awesome Autocomplete Plus making it ready for Python code.这是令人敬畏的 Autocomplete Plus 的提供者,使其为 Python 代码做好准备。

Features特征

  • Autocompletion from Jedi.绝地自动补全。
  • Suggestions include functions' methods (optionally) - just tab through them!建议包括函数的方法(可选) - 只需通过它们!
  • Comes with bundled Jedi - no need for jedi in your pythonpath附带捆绑的 Jedi - 在你的 pythonpath 中不需要 jedi

Installation安装

Either use Atoms package manager or apm install autocomplete-plus-python-jedi使用 Atoms 包管理器或apm install autocomplete-plus-python-jedi

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM