_references.js
It's really simple, you just add references to your js files in this folder of the format:
/// <reference path="jquery-1.10.1.js" />
And voila, I have intellisense. And if you're really lazy you can simply
- right-click this file -->
- "Auto-sync Javascript references"
- "Update Javaascript references"
And anytime you add or remove a file, this reference is updated.
Sources:
http://madskristensen.net/post/the-story-behind-_referencesjs
http://www.asp.net/visual-studio/overview/2012/visual-studio-2012-javascript-editor
No comments:
Post a Comment