Webstorm code completion does not show bootstrap classes

Pascal picture Pascal · Jul 13, 2014 · Viewed 13.2k times · Source

What do I have to change in my webstorm IDE that the bootstrap classes are recognized when I do:

<a class="btn btn-primary" />

At the moment I have always to re-check the class names by looking into the bootstrap css files. Thats not so nice...

Answer

J.J. picture J.J. · Dec 3, 2015

I had the same problem and finally fixed it!! You need to download the Bootstrap library LOCALLY.

This worked:

    <link rel="stylesheet" href="./css/css/bootstrap-theme.min.css" >

But this didn't work:

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">

Cheers, JJ