最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - VS Code color picker for .sass files - Stack Overflow

programmeradmin0浏览0评论

In the VS Code July 2017 release they have added a color picker, and state that it is available for Sass:

For the preview, we enabled it for CSS, Sass and LESS files, supporting RGBA, HSLA and Hex color modes.

The color picker does indeed work for .SCSS files but doesn't for .SASS files, is there anyway to enable the color picker to work for sass files as well?

In the VS Code July 2017 release they have added a color picker, and state that it is available for Sass:

For the preview, we enabled it for CSS, Sass and LESS files, supporting RGBA, HSLA and Hex color modes.

The color picker does indeed work for .SCSS files but doesn't for .SASS files, is there anyway to enable the color picker to work for sass files as well?

Share Improve this question asked Sep 1, 2017 at 14:45 Carlos ValenciaCarlos Valencia 7,0132 gold badges31 silver badges46 bronze badges 1
  • Does this answer your question? How can I enable the VS Code Color Picker outside of CSS-like scopes? – starball Commented May 4, 2023 at 10:29
Add a ment  | 

3 Answers 3

Reset to default 2

It doesn't appear so. If you don't get a better answer you can use the extension Color Info (which I was using before the Vscode July changes) and enable it for only .sass files.

"colorInfo.languages": [
  {
      "selector": "sass",
      "colors": ["css", "hex", "rgb"  ...........etc. ]
  }
]

VS Color Picker works just fine. And you can even pick colors from screen into your Editor.

VS code doesn't provide built-in support for indented sass and developers do not consider adding the feature natively.

发布评论

评论列表(0)

  1. 暂无评论