0

I have been using WebStorm for Angular project, I do not get any IDE support let say defining controller as following

enter image description here

I have checked that both Angular and AngularTemplates plugins are enabled at Settings | Plugins menu.

LazyOne
  • 158,824
  • 45
  • 388
  • 391
Ahmet Karakaya
  • 9,899
  • 23
  • 86
  • 141

1 Answers1

3

In Settings -> Languages and Frameworks -> JavaScript -> Libraries click on the download button and try adding the Angular library. Then back to your code right click anywhere inside and the on the use JavaScript Library option select Angular or any other library

adding js libraries to webstorm

choosing js libraries in webstorm

sea
  • 199
  • 2
  • 9
  • just about to say that - this was the old way of doing it prior to WebStorm 2016.1 - however, maybe the new way is having teeting issues so I suggest going down this road – danday74 Apr 09 '16 at 05:05
  • it works, I can see the controller related functions, I want to learn more about it, I choice one of the controller(..) offered then select one of them, but code should be completed with curly brakets, how can I make it possible – Ahmet Karakaya Apr 09 '16 at 05:26
  • There hasn't been any changes in configuring AngularJS support in WebStorm 2016.1: one should either has an angular.js file in the project or configure angular.d.ts. – Ekaterina Prigara Apr 10 '16 at 12:28
  • This helped me :) – jarvo69 Sep 11 '16 at 08:31