admin 管理员组

文章数量: 1086019

How to use the CSS classes auto pletion on WebStorm for CSS files imported from CDN like this?

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

How to use the CSS classes auto pletion on WebStorm for CSS files imported from CDN like this?

<link rel="stylesheet" href="https://netdna.bootstrapcdn./bootstrap/3.0.0-rc1/css/bootstrap.min.css">
Share Improve this question edited Aug 8, 2013 at 9:39 Micha 5,1738 gold badges36 silver badges47 bronze badges asked Aug 8, 2013 at 9:33 devmaodevmao 6808 silver badges18 bronze badges 2
  • I don't think you can do so. "Intellisense" is possible only for css properties not for classes or Id's. – Mr_Green Commented Aug 8, 2013 at 9:48
  • 1 It seems that downloading external libraries is only possible for JavaScript files. I have submitted a feature request regarding external CSS: youtrack.jetbrains./issue/WI-24108 – jabbett Commented Jul 16, 2014 at 17:54
Add a ment  | 

2 Answers 2

Reset to default 7

Only files located under your project root are used for pletion/navigation/error highlighting, WebStorm doesn't use online resourses for types resolving. So you have to download the css and reference it using the relative URL to make the pletion work

This is not possible. Only local css files are auto-pleted. Feel free to request this feature at their issue tracker: http://youtrack.jetbrains./issues

本文标签: javascriptCSS classes completion with CDNStack Overflow