According to this post intellisense should also be working on the new VS 2015, but so far I only get intellisense for the angular object and not for the dependencies or my custom modules.
Here's what I did:
- Added the angular.intellisense.js to the global javascript references at
C:Program Files (x86)Microsoft Visual Studio 14.0JavaScriptReferences
- Restarted VS2015
And then nothing, it just showed exclamation marks whenever I tried to use intellisense on a $http object.
I also added the file to the same place as my angular.js but it still didn't work. The question that I have in this case is, where should I place the file? on the angular public folder with only my angular.js, or on my dev angular folder where all the files downloaded from bower are.
I also tried addind it directly into the tools/options/text editor/javascriptr/intellisense/reference menu, on the Implicit(Web) reference group, but it still didn't work.
On my project I have the following folder structure inside the src folder:
- wwwroot
- app (my angular site stuff)
- controllers
- services
- views
- lib (js dependencies, only the .min.js file of each library)
- angular
- angular-route
- ....
- _references.js (the visual studio js references file, contains reference to the files inside the app and lib folders)
- Libraries (contains the full libraries as downloaded by bower)
- angular
- angular-route
- ...
As a side note, I don't have a /scripts folder and therefore no /scripts/_references.js
file
.
question from:
https://stackoverflow.com/questions/29830266/angularjs-intellisense-not-working-on-visual-studio-2015 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…