VS2013 lack of smart reminders for JavaScript

Source: Internet
Author: User

Transferred from: http://www.cnblogs.com/zkun/p/4277723.html

The first step: Add angular JS file references in the project;

The NuGet Package Manager is used here to add angular JS to the project.

Install-package Angularjs

Step two: Add smart hint JS file

We download angular.intellisense.js file and have two choices:

The first option is that we only want to use angular's smart hints feature in this project, then put the downloaded angular.intellisense.js in the same/scripts directory as the angular JS file.

The second option is that we want to use smart hints for all vs projects, so we put the Angular.intellisense.js file in C:\Program files (x86) \microsoft Visual Studio 12.0\ Javascript\references directory.

Then all the configurations are fully configured, so let's test them.

Create a new index.html file and introduce the angular JS file

Test results:

However, we usually write the JS code separately in the JS file, instead of the HTML file, the following test JS file to implement smart hints.

Create a new App.js file that demonstrates the following effects:

Note that you need to add a reference code to the JS file header

// /   // /  <reference path= "scripts/angular.js"/>///  <reference path= "scripts/ Angular-route.js "/>

This implements the angular code smart hint function in VS2013

VS2013 lack of smart reminders for JavaScript

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.