[Django]-Sublime Text 2 & 3 setup for python / django with code completion

38👍

In my opinion, there are ONLY 2 sulbime plugins that provide really good completion:

CodeIntel and Rope works badly. Djaneiro is more snippets than completion but I also find it useful.

👤WebPal

4👍

I’ve been using SublimeJEDI for some time. It does the job to a certain extent without adding bloat. It has limitations and it’s far from being as aesthetic and complete as PyCharm.

With new editors supporting code completion out of the box, I’m dismayed that ST doesn’t do a good job at it.

Update : After using it for a few months, I feel SublimeJEDI doesn’t really add much convenience. It rather messes some of the default completions of ST2 when you cycle through various options with Tab. It’s prediction is severely broken.

👤user

1👍

I found the Djaneiro plugin super useful. It adds syntax highlighting for Django HTML templates and comes with a bunch of handy code completion snippets:

For example, you can type if, hit Tab, and Djaneiro creates a complete {% if ___ %} {% endif %} block for you automatically.

I guess it depends on one’s definition of “auto-complete” but I really like the snippets added by Djaneiro. I use it in combination with the Anaconda plugin for code completion and I’m very happy with this setup for Django development.

I actually wrote a review of Djaneiro and its features a while ago. You can find it here if you’re interested: https://dbader.org/blog/sublime-text-djaneiro-review

👤dbader

Leave a comment