In the previous videos if you had noticed as we were typing the angular code in script.js file we were getting some Intel Lisense but it definitely are not good though. For example if we type $routeProvider and then a. (DOT) We were not getting IntelliSense.
3 Simple Steps-get better IntelliSense for angular in Visual Studio
Step 1:Download AngularJS Extension for Visual Studio from the following link. The link displays the script in a Web page.
Https://raw.githubusercontent.com/jmbledsoe/angularjs-visualstudio-intellisense/master/src/Scripts/angular.intellisense.js
Step 2:Copy and paste the script in a new Notepad. Name it angular.intellisense.js and save it to the following folder on your computer
C:\Program Files (x86) \microsoft Visual Studio 12.0\javascript\references
Step 3:Now drag and drop the following 2 files from Scripts folder onto Script.js file
Angular.min.js
Angular-route.min.js
Visual Studio would automatically add references to the above 2 files in Script.js
<reference path= "Angular.min.js"/>
<reference path= "Angular-route.min.js"/>
At the this point, we type $routeProvider and then a. (DOT) in the Script.js file, we get great IntelliSense.
Part AngularJS IntelliSense in Visual Studio