开发者

emacs python code completion [duplicate]

开发者 https://www.devze.com 2023-03-18 04:49 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Emacs - tab-completion of local Python variables
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Emacs - tab-completion of local Python variables

Ok I am getting very confused about this.

What I want is code c开发者_开发技巧ompletion for:

  • The current file (even all open buffers)
  • Any module that is imported in the current file
  • Standard libraries

(yes I have been spoiled by intelli-sense)

What do I need to achieve this?

I'm just really confused as there seem to be countless plugins for code completion, just have no idea which ones I need/want.

Please don't suggest another editor/ide. I know a lot of them have this out of the box, but I really like emacs.

Thanks in advance.


Update: I strictly use melpa package manager now, I install auto-complete from there. It is easier. I do not use this method below anymore.


I use autocomplete (docs, installation instruction)

You can install it via make (I used this), or by executing install.el, or manual installation (byte compiling)

You'll be required to add something to your init.el

;;load the auto complete path here, if you havent done it
(add-to-list 'ac-dictionary-directories "~/.emacs.d/ac-dict")
(require 'auto-complete-config)
(ac-config-default)

I dont know if there's any tool beside this, but so far this is good enough for me.

Note: this is for auto completion only. If you want a full blown IDE capability you can try those links on comment posted by huitseeker

0

精彩评论

暂无评论...
验证码 换一张
取 消