32

I want to use an autocomplete plugin with sublime text for web development. I'm using django framework. I've looked into the following possible options. Not really a question, just for reference, I've added these here.


The listing order represents popularity to a certain extent (based on activity level, commits, contributors, favorties, forks, issues (open/closed) [Feb-2014]


  • SublimeCodeIntel : Code intelligence plugin ported from Open Komodo Editor to Sublime Text.

    Features :

    • Jump to Symbol Definition - Jump to the file and line of the definition of a symbol
    • Imports autocomplete - Shows autocomplete with the available modules/symbols in real time
    • Function Call tooltips - Displays information in the status bar about the working function
    • Supports : JavaScript, Mason, XBL, XUL, RHTML, SCSS, Python, HTML, Ruby, Python3, XML, Sass, XSLT, Django, HTML5, Perl, CSS, Twig, Less, Smarty, Node.js, Tcl, TemplateToolkit, PHP.

  • SublimeJEDI : SublimeJEDI is a Sublime Text 2 and Sublime Text 3 plugin to the awesome autocomplete library Jedi

    Features:

    • Autocomplete on DOT
    • Function args fill up on completion
    • Jedi Goto / Go Definition
    • Jedi Find Related Names ("Find Usages")

  • Djaneiro : Django support for Sublime Text 2/3

    Features

    • Snippets for Django templates
    • Snippets for Django model fields
    • Snippets for Django form fields
    • Completions

user
  • 17,781
  • 20
  • 98
  • 124

3 Answers3

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
  • 818
  • 8
  • 16
  • Could you elaborate on 'works badly' for both CodeIntel & Rope? – user Sep 20 '13 at 11:58
  • Yes, ofc. They just can't recognize many libraries. – WebPal Sep 20 '13 at 12:27
  • 4
    They have troubles with reading `__init__.py`. Also they have troubles with `go to definition`. In JEDI you can easily jump to django's source code or for ex. to your model. CodeIntel and Rope can't provide it. – WebPal Sep 20 '13 at 12:28
  • 1
    Thank you for mentioning the Anaconda plugin, it's sometimes hard to discover good plugins with creative names... – Yichuan Wang May 07 '14 at 08:07
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
  • 17,781
  • 20
  • 98
  • 124
  • 4
    Not sure if PyCharm is really worth 100$... – andilabs Mar 14 '14 at 10:15
  • 1
    Reason? Personally, PyCharm is appealing feature-wise but it's so sluggish even on a modern machine. I've tried to use it at multiple occasions but gave up in a few minutes. It's the opposite of responsive. – user Mar 14 '14 at 11:08
  • @andilabs even sublime text **can** be paid (which is completely worthless), and PyCharm also has a free addition – user16714199 Feb 28 '22 at 04:48
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
  • 10,081
  • 2
  • 22
  • 17