Sublime Forum

How to add path to existing Python libraries for autocomplete?

#1

Hello.

How to add path to existing Python libraries for autocomplete?

For example, in PyCharm I’ve added paths to the existing libraries and now I have autocomplete for import, class names and class object, in PyCharm.

But how to do it in sublime? How can I add my libs, to re-index that in sublime and use them for autocomplete?

Thank you!

0 Likes

#2

Depends on which package you use for python completion

0 Likes

#3

I use default sublimetext distrib. What package is distributed in it?

0 Likes

#4

Sublime Text has no build-in support for python auto-completion only word completions for words in the buffer.

0 Likes

#5

Pity… Ie, I will continue to use PyCharm…
Thank you!

0 Likes

#6

On contrast to PyCharm Sublime Text is a general purpose text editor and not only designed to program python. However you can just install Anaconda, which adds a lot of IDE features for python.

0 Likes

#7

Jedi also Just Works™. Because I do a lot of plugin development, I added the Sublime Text application folder as completion sources, which contains sublime.py and sublime_plugin.py.

4 Likes