I am wondering how to get intellisense for angular on html pages in visual studio 2013 update 3
I can get intellisense for the js pages using the _references.js. However i would like to to be able to reference controllers and properties in the html for quicker coding.
So if i have
ng-controller=""
I would like it to be able to references all the controllers i have created.
Also in a ng-repeat. If i have created
ng-repeat="foo in vm.foos"
I would like intellisense to then be able to pick up all the properties for foo to use
{{foo.fooProperty}}
Is this possible?
I do have web essentials 2013 update 3, but i do not get this functionality. I am thinking of moving to the webstorm IDE because it has it all built in but would prefer to have it in visual studio
Updated 2/16/2016 with added comments and attribute type examples
This is a hack into Visual Studio's own internal files, so beware when upgrading Visual Studios.
By editing the html.xsd file, you can add custom directives, directive attributes, and even directive attribute value options.
Copy and paste this location in your Windows Explorer location bar:
Location for Visual Studio 2013
Location for Visual Studio 2015
Make a copy of the html.xsd file and backup to a new location.
Look for the line at around 103 that begins:
Then further down, before the closing tag, add the element definitions for each of your directives.
As a cherry-on-top, you can add a vs:icon="myCustomIcon.png" to each attribute or element to get your own icon in the dropdown, you would then place this 16x16px PNG in the 1033\HTML folder (the same folder as your updated html.xsd).
I found I often had to restart Visual Studio twice to get these to take. And make sure you provide administrator rights when you copy new files or save new files into the Program Files directory. If you don't get an administrator warning, either you've disabled them, or something's not quite right. In my setup I found I wasn't able to save directly to the 1033\HTML folder, I had to drag the files into the folder after saving in a folder outside the "Program Files" folder.
Try Resharper - While it only supports some AngularJS, it does a very nice job. Here is a ReSharper blog regarding