title: Why can't Visual Studio collapse Javascript functions that include Razor syntax?
body: <p>My .cshtml file in Visual Studio looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/91USO.png" alt="enter image description here"></p>
  
  <p>Notice how <code>createTabStrip</code> can collapse, but <code>createTeachersTab</code> cannot. Why is this?</p>
  
  <p>EDIT: It seems to have something to do with the razor syntax. I took out all of the <code>@</code> signs and <code>createTeachersTab</code> was able to collapse.</p>