【发布时间】:2014-10-09 17:35:57
【问题描述】:
我目前正在使用 IntelliJ IDEA 13 Ultimate Edition,我使用 Stylus 作为 CSS 预处理器,我真的很想为 Stylus 的 @import 功能添加 IntelliJ 支持
示例
colors.styl 包含
$nice-color = lightgreen
和foo.styl 包含
@import "colors"
body
background-color $nice-color
这将评估为这样的 css
body {
background-color: #90EE90
}
问题
我的 IDE 会在编辑器的行号旁边显示一个漂亮的小颜色预览框。
但这仅适用于定义颜色的colors.styl 文件。
(https://www.jetbrains.com/img/webhelp/colorPreview.png)
我真的很想在foo.styl 文件中看到相同的预览框,我在其中导入并实际使用了这种颜色。我已经为 IntelliJ 安装了 Stylus 插件。
有什么方法可以实现吗?
【问题讨论】:
标签: css intellij-idea stylus