Monday, May 7, 2012

Quick Tip: jQuery and Knockout Intellisense in Standalone JS

image

So simple, yet one of those things that takes stopping and looking up.  If you want intellisense for jQuery and KnockoutJS, in a standalone JavaScript file, just add these lines to the top of your page:

/// <reference path="jquery-1.6.2-vsdoc.js" />
  /// <reference path="knockout-2.0.0.debug.js" />

Obviously, adjust the versions and paths as needed.

No comments: