S
S
sallyruthstruik2014-05-29 19:01:57
Python
sallyruthstruik, 2014-05-29 19:01:57

How to auto-import Python packages in Sublime Text?

I recently moved from Eclipse + PyDev to Sublime Text 3 (Eclipse is too heavy and slow - it's enough. And it eats a lot of memory ...). Everything is fine, only infuriates that there is no auto-import of modules as in eclipse.
Maybe there are some plugins? It infuriates constantly jumping through the file and adding imports.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
beson, 2014-05-29
@beson

Have you looked from package control? If not, then here is the proof for installing forum.sublimetext.ru/index.php?topic=6.0
, search through it for keywords, I think you will find it.

K
koshak, 2014-05-29
@koshak

In Sublime Text 2 there was this https://sublime.wbond.net/packages/SublimeRope
In the third it was replaced with https://sublime.wbond.net/packages/SublimePythonIDE and for some reason auto-import was cut out.
I use https://sublime.wbond.net/packages/Anaconda but I'm already used to living without auto-import, although this plugin has a rather dumb alternative:

Anaconda will add an import at the end of your imports block if you use the context menu Autoimport anaconda option using the right mouse click over an undefined name in your buffer. Note that anaconda will NOT check if that is a valid import or not.
At least everything that is not defined is highlighted, as are all unnecessary imports. It's enough.
ZY Did not look towards PyCharm'a?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question