【问题标题】:How to add Stylus "@import" support to IntelliJ如何向 IntelliJ 添加 Stylus“@import”支持
【发布时间】: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


    【解决方案1】:

    我认为不改变 Stylus IDEA 插件的源是不可能的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-02-10
      • 2010-09-10
      • 2021-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多