gpt4 book ai didi

intellij-idea - 如何在 IntelliJ IDE 中添加 Bootstrap 自动代码完成功能?

转载 作者:行者123 更新时间:2023-12-04 06:21:02 52 4
gpt4 key购买 nike

我在 IntelliJ IDEA 中添加了 Bootstrap3 插件,并在 html 页面中添加了 css 和 js 链接。但是我无法获得引导类名称等的自动完成功能。
我怎样才能做到这一点?

最佳答案

我遇到了同样的问题,最终找到了这个:https://intellij-support.jetbrains.com/hc/en-us/community/posts/206324479-How-to-activate-autocomplete-with-Bootstrap

技巧是你不能使用 cdn 提供的 css - 你必须在本地引用它。

这一行对我有用(html 文件在 .../resources/templates/和 bootstrap .css 文件被下载到 .../resources/static):

<link rel="stylesheet" href="../static/bootstrap.css">

我确实需要等一下intellij 首先将其编入索引。

希望有帮助:)

关于intellij-idea - 如何在 IntelliJ IDE 中添加 Bootstrap 自动代码完成功能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42560194/

52 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com