7

I am using vs2012 but I had this issue in vs2010 as well. Whenever I attempt to add a data-bind attribute, intellisense inserts datafld-bind. Thus I have to go back and edit it every time. I am writing a SPA with knockoutjs and consequently have numerous data-bind attributes throughout.

Is there anyway to modify/disable this behavior while keeping the rest of intellisense intact?

I've included the knockout tag since anyone doing knockout development in vs is likely to have the same problem...

schmidlop
  • 1,356
  • 16
  • 31
  • In the Code Snippets Manager ? – Joan Charmant Aug 11 '13 at 18:11
  • try changing the HTML mode to HTML5, that will prompt VS to enter data- only. Try it and let us know if that works. – Sujesh Arukil Aug 14 '13 at 16:55
  • Not sure exactly where to set that. I went to Tools|Options|Text Editor|HTML and set target when no doctype to: XHTML5 to see what happens...I'll let you know. BTW, it was already at HTML5 and I have ` ` in my .aspx file. – schmidlop Aug 15 '13 at 17:50
  • This is still an issue though it comes and goes. I've been unable to prevent it reliably :-( – schmidlop Jan 21 '14 at 04:50
  • 3
    I can't reproduce this in VS2010 or VS2013. You may have a VS extension that does it? Can you run VS in SafeMode and see if it stil happens: http://stackoverflow.com/questions/4182471/how-to-run-visual-studio-without-plugin-and-all-third-party-feature – Simon Mourier Jun 11 '15 at 05:38
  • I also can't reproduce this (VS2012) – sroes Jun 11 '15 at 07:03
  • I don't have VS installed anymore so I can't check (using webstorm these days). However, back in the day this issue was intermittent. I had no extensions or plugins except resharper. I often changed the default editor because VS would make the files read only during debugging. – schmidlop Jun 11 '15 at 15:01
  • You guys saying you can't reproduce this prompted me to try it with a plain old html file, as opposed to PHP (utilizing the VS.PHP plugin). Lo and behold, this doesn't seem to be an issue within a plain html file. So _maybe_ it has something to do with VS.PHP plugin, at least that gives me a path to go in. – Phil Jun 11 '15 at 21:08
  • Using VS2013 and never had this issue. – shammelburg Jun 12 '15 at 07:44

1 Answers1

1

It looks like you can disable Intellisense for knockout altogether, but I don't believe you can modify the suggestions it returns.

Jamieson
  • 991
  • 1
  • 7
  • 4