SharePoint 2013 uses the JavaScript object model to configure smart hints

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.