Code Completion

Code completion provides context-sensitive completions and is enabled with Ctrl+Space. (NOTE: eclipse has simple text-completion by default in emacs-style with Alt+/).


Now, how to use it:

If you want to configure something, you have to go to Window->preferences->PyDev->Code Completion.





After setting the preferences, you have to set the PYTHONPATH you want to use for a certain project. To instructions on how to do it, check the FAQ.

Some snapshots of code completion in action

Completing on a variable on the class (also works for locals) that are defined in the same scope we are.





Getting the builtins (they always show in red).





Completing on a class (note that we get the hierarchy even from builtins).





Completing on the imports (goes for PYTHONPATH)





Completing on an import





Completing for global tokens