Search code examples
pythondjangoimportsublimetext2rope

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.


Solution

  • 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).