IPython-like code completion in text editor [closed]

若如初见. 提交于 2020-05-28 09:28:18

问题


Possible?

I love the code completion that IPython provides. Is there a way to get that in a text editor, preferably gedit?

Thanks!


回答1:


gedit supports plugins. If you haven't already install the available plugins for gedit which will help you along as well:

sudo apt-get install gedit-plugins

Next, download the autocomplete plugin and extract it to ~/.gnome2/gedit/plugins/

Restart gedit and activate the plugin from the plugins manager.

vim also has autocompletion support; using none other than the Force via the jedi plugin.

If you are serious about Python development; consider giving PyCharm a try. It is what I use and I cannot recommend it enough. A free version is also available.




回答2:


The editor configuration help page offers some suggestions. Of those, I think vim-ipython comes closest to what you're looking for.

Not listed there is LightTable, which doesn't offer code completion yet, but can use IPython for inline evaluation (See http://docs.lighttable.com and the LightTable 0.4.0 blog post).




回答3:


I don't know about gedit, but I think you can do it with emacs via EIN plugin and vim via vim-ipython plugin.



来源:https://stackoverflow.com/questions/18571438/ipython-like-code-completion-in-text-editor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!