This project has moved. For the latest updates, please go here.


Django VS2013 - No completions for {% if


VS 2013, Feb 4 2014 signed build

In a django template, type the following with a space after if:
{% if 
and you won't get the dismissal of the intellisense dropdown, and the list of candidates for after 'if'. On VS 2010, you would see listed names of variables that are defined, in addition to the 'not' operator. Here you don't get anything.

In the same template, if I type {{ I do get an intellisense dropdown with some variables in it, so it's aware of them.


file attachments


huguesv wrote Feb 5, 2014 at 8:08 PM

Here's what it looks like in 2010:

Zooba wrote Feb 6, 2014 at 10:41 PM

At the moment, we commit completions based on the same characters as Python uses (Tools->Options->Text Editor->Python->Advanced), which doesn't include a space by default. Adding a space makes this work as expected.

We should probably use a different set of characters here that are specific to Django templates.

huguesv wrote Aug 12, 2014 at 10:19 PM

On 2010, if you type 'ifc' then space, then you get ifc (not ifchanged)