Search code examples
visual-studio-2013dust.jsautocorrect

Prevent Visual Studio to auto correct this


I have the following line:

<input id="cbField{$idx}" 
   type="checkbox" value="{ID}"
  {?checked}checked="checked"{Checked}"/>
<label for="cbField{$idx}">{Name}</label>

{?checked} is wrong, it should be {?Checked} with a Capital C.

When I copy 'Checked' and past it on 'checked', VS "correct" them both to 'checked'.

I work with dust.js so I'm not writing 100% "right of the bat" valid HTML and I'd like to prevent visual studio to make any single change to what I type

How can this be done?


Solution

  • I found it, it's in HTML/... Advanced : Format on paste.