Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 2. Autocomplete python `from`

I am using SublimeRope plugin. When I am typing from foo.b it displays the autocomplete dialog with random crap but what I am really looking for is to recognize bar module inside the foo package. However if I type from foo import b it immediately suggest me to import bar as a module. Which means Rope "knows" about that module. How can I configure my Sublime to help me suggest the imports when from foo.b ?

I am doing projects with django so the real example it wont me to autocomplete from django.contrib. but if I type from django.contrib.auth.models import U it suggest me to import user.

like image 315
Andrii Zarubin Avatar asked Jul 25 '13 12:07

Andrii Zarubin


1 Answers

You should definitely be using SublimeJEDI for Python autocompletion! There's no way around Jedi awesomeness.

This is just a Sublime Plugin for the Jedi library (which is definitely better than Rope, but I'm biased because I'm the author).

like image 98
Dave Halter Avatar answered Sep 21 '22 01:09

Dave Halter