Skip to content Skip to sidebar Skip to footer

Code Completion For Custom Modules Not Working With Pydev

Let's say I make a module called mylib.py. In eclipse I type import mylib Then I type mylib. and hit CTRL+SPACE. This should suggest functions/variables in mylib, but it doesn't d

Solution 1:

In order to get completion for custom modules, PyDev has to index it (if possible) and introspect the classes, functions, variables and imports defined there. To do so, you should add your module to the eclipse's PYTHONPATH and then reindex your venv (the one defined in PyDev).

Most of the times this is done automatically by the IDE but it doesn't work quite well (at least it is not perfect).

I really suggest you not to rely at 100% on the IDE completion.

Post a Comment for "Code Completion For Custom Modules Not Working With Pydev"