5

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?

Carlos Valencia
  • 6,499
  • 2
  • 29
  • 44
  • Does this answer your question? [How can I enable the VS Code Color Picker outside of CSS-like scopes?](https://stackoverflow.com/questions/50622898/how-can-i-enable-the-vs-code-color-picker-outside-of-css-like-scopes) – starball May 04 '23 at 10:29

3 Answers3

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. ]
  }
]
Mark
  • 143,421
  • 24
  • 428
  • 436
  • thanks, I'm not sure why they have provided support for syntax-color + color- picker for .SCSS and not for .SASS. I've used the color picker extension before, but I'm trying to avoid using extensions if there is something built-in that I could use. – Carlos Valencia Sep 01 '17 at 18:28
  • I see no setting that would enable it. And the docs repeatedly refer to .scss support with no mention of .sass support. Must be difficult to support the indented syntax. – Mark Sep 01 '17 at 19:59
  • 1
    well, it seems like they wont be adding support to .sass files for this, I have slowly moving from .sass to .scss, it seems .scss is more popular. – Carlos Valencia Nov 28 '17 at 12:34
1

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

AharrFaris
  • 101
  • 1
  • 5
0

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

daGo
  • 2,584
  • 26
  • 24