How do i get IntelliJ to recognise Angular directives

Hi, I'm using IntelliJ IDEA 14.0.3.

I want the IDE to recognise angular directives in my HTML files, with click through. Is this possible?

I have a project with a web module and a java application module. The directives are in the web module.

Regards,
Gilbert

4 comments
Comment actions Permalink

First of all AngularJS plugin should be installed via Settings | Plugins | Install JetBrains plugin.
After that it should work automatically as long as you have angular.js in your web module (e.g. in assets folder, or node_modules, bower_components) or attached as a library.

0
Comment actions Permalink

Ok, got it thanks - I had excluded node_modules from my project.

0
Comment actions Permalink

Hi Dennis,

I have installed IntelliJ IDEA  2016.1.1 (community version). For some reason, I could not see Angular plugin to install.

I tried searching via Settings | Plugins | Install JetBrains plugin (or Browse repositories). But I could not find it.

I also tried File | Invalidate cache and restart.

What am I missing here ?

Thanks

Ravi

0
Comment actions Permalink

Hi Ravi,

that's correct. AngularJS plugin requires JavaScript support that is not available in Community version

0

Please sign in to leave a comment.