I am using PyCharm as my IDE for about 1 year, and in my PyCharm setting --> Editor --> Appearance, "Show CSS color preview icon in gutter" is checked.
But the preview icon only shows in a <style>
block in .html
. And when I moved the styles into a separate .css
file, the preview icon just not show.
How can I make the color preview icon show in a .css
file in PyCharm ?
Can't reproduce:
Check that .css
is mapped to the correct file type in Settings
| File Types
.
Also try File
| Invalidate Caches
| Invalidate and Restart
.
If the above doesn't help, contact support with a sample project to reproduce, your settings exported with File
| Export Settings
and idea.log.
UPDATE: colors in the gutter may not show if you have Highlighting Level
set lower than Inspections: