I suggest you ...

Improve the Razor intellisense inside script blocks

Razor intellisense is being lost when I am working inside a script block. https://twitter.com/#!/tourismgeek/status/182131955771523072

14 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    tugberktugberk shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    4 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • rknl60rknl60 commented  ·   ·  Flag as inappropriate

        I would be very happy if the javascript service can be disabled in the html editor. I prefer to have the razor intellisense over the Javascript

      • Mads KristensenAdminMads Kristensen (Admin, ASP.NET Future Feature Feedback) commented  ·   ·  Flag as inappropriate

        I don't think we are able to fix this issue in VS11. It sounds rather simnple, but it is actually very complex. Right now the HTML editor hosts the JavaScript language service inside the HTML. For the Razor scenario to work, the hosted JavaScript should then host the HTML editor again. Think of it as running a VM inside a VM with circular references. Complex stuff.

        The HTML editor in Visual Studio has always had this problem with WebForm code nuggets <%%> as well.

        However, we are looking at a better story for this for vNext

      Feedback and Knowledge Base