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

admin2025-04-19  1

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.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745041768a281585.html

最新回复(0)