Sublime Forum

Sublime 4 - Disable colour samples

#1

I find the colour samples a little annoying, they act like a char but not the same.
In files with many colours, the coding get a little tedious.

Under settings, didn’t find any option to disable it

Also installed ColorHelper plugin with the hope that the plugin will overwrite the default behaviour, and give me some control about the samples, but the samples get showed twice:

Any advice on how to remove the color samples?

Thanks!

0 Likes

#2

There is no such default behaviour in Sublime; if you’re seeing that, then you’ve installed a package that’s doing it for you. I would have suggested ColorHelper as the plugin doing it, but since you said you just installed it that can’t be it.

You want to examine the list of packages you’ve installed and see if any of them have this feature.

0 Likes

#3

Possibly, but some LSP do this too.

0 Likes

#4

So, I read the thread closer. Yes, ColorHelper does add previews, which after you installed it gave you two. Also, yes ColorHelper will let you control when you want to see those previews (for instance, you can only show them on selection, etc.). But ColorHelper won’t allow you to override another plugin’s previews, which is what you originally had.

I suspect that some LSP server is adding them and, if you don’t like them, you can turn them off. I am not currently using a CSS LSP server, so I cannot advise you about how to disable the LSP color previews.

If you have questions about ColorHelper (I’m the author), I’m happy to answer any. But if you just don’t want previews, just uninstall ColorHelper :slightly_smiling_face:.

0 Likes

#5

In case it’s LSP-css, you can disable the color boxes as follows: Run Preferences: LSP-css Settings from the Command Palette. Then add

    "disabled_capabilities": {
        "colorProvider": true,
    },
0 Likes

#6

Indeed, the behaviour was given by the CSS LSP server,
I configured it like @rwols said, and the samples are gone.

Now I’m going to try ColorHelper, the options of the plugin seems interesting.

Thank a lot!

0 Likes