1
Vote

Django VS2013 - No completions for {% if

description

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.

Image

file attachments

comments

huguesv wrote Feb 5 at 8:08 PM

Here's what it looks like in 2010:
Image

Zooba wrote Feb 6 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.