title: Intellisense support in Visual Studio 2008/2010 for jQuery closures {
body: <p>I'm trying to get Intellisense to correctly work for closure. As a plugin author, I always use a closure to create an isolated environment for my plugin code:</p>
  
  <pre><code>(function($) {
    // code here
  })(jQuery);
  </code></pre>
  
  <p>But the problem here is that Intellisense doesn't pick up that jQuery is being passed in the execution of the function. Adding $ = jQuery in the above code fixes the problem, but that's just poor execution, IMHO.</p>
  
  <p>Anyone here got this working without resorting to embedded ASP server tags (this is a standalone JS file)? Something preferably not including modifying existing code other than some odd <code>/// &lt;option .../&gt;</code>-like solution?</p>