将Bootstrap代码完成添加到Intellij项目

时间:2015-07-28 14:39:01

标签: intellij-idea twitter-bootstrap-3 code-completion

所有

使用Intellij IDEA Ultimate 14.1.4。并尝试将Bootstrap 3代码完成添加到我的项目中。我已经下载了Bootstrap 3插件。

我的项目结构看起来像这样......

MyProject
    - app
        - views
            index.html
    - public
        - css
            - bootstrap.min.css
        - ...
    - server.js

当我尝试在index.html中键入bootstrap类时,例如class =“col-sm-2”,代码完成不起作用。

但是,如果我将我的public \ css文件夹直接移动到我的项目文件夹下,如下所示:

MyProject
    - app
    - css
        - bootstrap.min.css
    - ...

现在,在index.html中键入时,Bootstrap的代码完成工作正常。是什么给了什么?

1 个答案:

答案 0 :(得分:0)

It seems it may be the location of the html page that's causing the problem. I put an html file in both app/views/ and public/. The public directory's html file received code completion, while the app/views directory did not.