问题
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