/// <reference path=?~/Scripts/json2.js?>
But this doesn't work (yet) within SCRIPT blocks. So what about those rare times you actually want intellisense within your page? It's actually quite easy though a bit hacky - stick it in a condition branch that never gets reached. So,
The Intellisense parser doesn't really care about the fact that the code wont ever get hit and you still get your typeahead and documentation etc. but it won't ever get accidentally written to the generated output (as often happened to me). I guess this seems kind of obvious or whatever but perhaps so obvious some people may not have even though about it and hopefully it'll help someone out somewhere at some point sometime, eventually - maybe.