Django tags for templates in Eclipse

前端 未结 5 755
遇见更好的自我
遇见更好的自我 2020-12-30 09:01

I\'m wondering if is it possible to have autocompletion, autoformatting, and those beautiful things working in Eclipse IDE for Django based templates.

Mainly for the

相关标签:
5条回答
  • 2020-12-30 09:16

    Looks like the PyDev 2.0 has integration with Django Templates Editor that works with Aptana Studio 3 from 2010-08-18. This may be a little dated. I'm trying to get the same thing done today. There are instructions from Fabio Zadrozny

    0 讨论(0)
  • 2020-12-30 09:20

    I have started creating my own template in Windows > Preferences > Editors > HTML > Templates, for example for the {% code %} and {% endcomment %} tag. Of course, this is not exactly what you want, because it is not dynamically, and that is exactly where it would help most.

    0 讨论(0)
  • 2020-12-30 09:21

    Check this page for Django Eclipse plugin: http://eclipse.kacprzak.org/

    0 讨论(0)
  • 2020-12-30 09:37

    I really don't know of anything. A priori, it sounds possible that a project might get the {% ... %} working properly, but the {{ ... }} could be quite a stretch. Consider that the django templates don't know anything about code that will be filling them in, so there's no real way to look at headers or a symbol table and guess that when you start typing fo that foobar might be a valid variable name.

    0 讨论(0)
  • 2020-12-30 09:40

    By default PyDev has "Templates" which makes this very easy. I created templates for all the Django template tags and shared them on Bitbucket. Just download them and import it in Eclipse.

    0 讨论(0)
提交回复
热议问题