简体   繁体   中英

Support for Python and Django autocompletion in Sublime Text

I have been using Pycharm for a while as only an editor for Python and Django development. I love its support for autocompletion. However, I don't really use any of its IDE features, as I most frequently use my Mac terminal instead (eg for git).

Sublime Text looks like a good and simple/fast editor. Does anyone know what plugins support the autocompletion like Pycharm does (also for Django)?

Thanks!

Djanerio supports Django syntax and autocompletion. Anaconda will do for Python autcompletion, and you can use sublimelinter with pyflakes or pep for linting. This site may also be of interest to you:

https://realpython.com/blog/python/setting-up-sublime-text-3-for-full-stack-python-development/

If you're looking for a Django-specific plugin for Sublime Text I can recommend Djaneiro . Its main features are adding:

  • syntax highlighting for Django HTML templates; and
  • code completion snippets for Django HTML templates and Python files.

It sounds like you'd be more interested in the code completion snippets but I found that the improved syntax highlighting for Django templates is also super useful.

The code completion snippets added by Djaneiro are quite comprehensive. For example, you can insert an {% if _____ %} {% endif %} block by typing if as an abbreviation and hitting the auto-complete key ( Tab by default).

If you'd like to learn a bit more about Djaneiros pros and cons I wrote this review for it a while ago: https://dbader.org/blog/sublime-text-djaneiro-review

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM