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
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
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.
Check this page for Django Eclipse plugin: http://eclipse.kacprzak.org/
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.
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.