4 comments
Comment actions Permalink
Which snippets do you actually use? We're not big fans of adding all kinds of random live templates that someone might use some day, but we'll be happy to add snippets which actually do something smart and facilitate writing of commonly occurring Python code patterns.

For Django templates, we have a number of bundled live templates which are actually fairly smart - do you use them?
0
Comment actions Permalink
The basics would be nice. That one set of live templates provides some of them. `if, ifelse, for, class, def` etc.

Beyond that, these are the only django ones I currently see. Is this what you are referring to: http://screencast.com/t/uzem3tSaLA

In sublime I have a giant set from this plugin: https://github.com/squ1b3r/Djaneir

On the landing page you can see all the various snippets available in both templates and python code.

Best,
Bob
0
Comment actions Permalink
Yes, that's what I'm referring to.
As I said, we don't consider a giant set of snippets inherently better than a smaller one. Just as one example: what do you actually save by using a live template to write an 'if' statement?
0
Comment actions Permalink
Maybe you don't get a lot in python, but I still like it. You can easily tab through to the different areas and fill them out. I think the keystrokes are still slightly saved (by a hair), but its also the nice visual of the if laid out I guess.

But I also really like all the django completions. mchar becomes FIELDNAME = models.CharField(, max_length=50) and obviously lets you tab through.
0

Please sign in to leave a comment.