Objective
By default, writing the SharePoint JavaScript client object model in vs2012/2013 does not have the IntelliSense feature, which is cumbersome to use; in fact, we can manually configure it so that JavaScript can be IntelliSense, Let's take a quick look at the whole process.
1. Under Vs Tools, find the options option, find the javascript below the text editor, check the references below IntelliSense and see if there are any ~/scripts/_ in it. References.js this one, if not added on (add very simple, write the path to that text box, click Add on the line), if any, can be ignored; Special Reference group to choose the right, choose the web, such as:
2. Create the Scripts folder on the root of VS, add the _references.js file in it, type the best JavaScript, other types I haven't tried, but I think as long as the change back to. js file should be a small problem, such as:
3. In the _references.js file, add a reference to the JS file that requires IntelliSense, in the following format:
4. An example of how IntelliSense feels is much better than writing JavaScript before, cool~~
Summarize
See this add IntelliSense after, a little popular science, ~/scripts/_ References.js This path can be set on its own, not the same as the default, I understand can also be set to other names; IntelliSense should also use other JavaScript, even jquery, as for popular JavaScript frameworks such as Nodejs and Angularjs, we You can try it and personally think it's supportive.
Special, I here is vs2012/2013 version, if VS2015 or higher version, already has the intelligence perception, trouble not to spray, also, do not like to spray, hehe, thank you!
SharePoint 2013 uses the JavaScript object model to configure smart hints