Color preview (no longer?) works in strings

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

As you can see in the screenshot, color preview is not rendered when a color value appears in a string.
This works in vscodium 1.110.11631 and I suspect that it used to work in cursor, otherwise I would’ve probably reported it already.

Steps to Reproduce

See screenshot.

Expected Behavior

Color preview should appear wherever color values are.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version: 2.6.18 (system setup)
VSCode Version: 1.105.1
Commit: 68fbec5aed9da587d1c6a64172792f505bafa250
Date: 2026-03-10T02:01:17.430Z
Build Type: Stable
Release Track: Default
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, this is a known issue. Hex colors inside strings don’t show a preview. The reason is that the fix was made upstream in VS Code microsoft/vscode#239446, but it hasn’t been merged into Cursor yet. More details here: Color decorators do not work for hex codes.

It’s on our radar and will be fixed in the next upstream merge, but there’s no ETA yet. I’m closing this as a duplicate.

1 Like

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.