No syntax highlight for *.qss file in Qt Creator?

2019-04-19 14:36发布

问题:

It's wired that Qt Creator didn't have a syntax highlight for its own style file format , or did i missed some packages ?

VER: Qt Creator 2.1.0

回答1:

I could not find any evidence in Qt's documentation that .qss is an officially designated file extension. I'd say just change it to .css.



回答2:

Go to

Tools > Options > Environment > Mime types

Find text/css and add *.qss to patterns.