VS2010 IntelliSense inside text/x-jquery-tmpl script templates

前端 未结 5 1603
北海茫月
北海茫月 2021-01-01 14:53

I\'ve been using jQuery templates which I absolutely love to use. The only drawback from an IDE standpoint is the lack of HTML IntelliSense inside the script tag. Is there

5条回答
  •  暖寄归人
    2021-01-01 15:10

    I don't think you can unless you trick the editor to not know you are writing a script tag, like writing it in code (HTML helper or so). I'd work around it by changing the tag name (or commenting it) temporarily and bringing it back after I'm done. Sure that's a silly solution.

    One other thing you can do is instead of using script tag, use any other tag like div setting it's style to display:none. It should work exactly the same way (example in middle of this article).

提交回复
热议问题