Solution 1 :

The common case for the issue is that the file pattern is assigned to Text file type. It can be fixed in File | Settings | Editor | File Types:

CSS

Problem :

A very long time in Intellij IDEA reformat code for CSS and code completion doesn’t work. When I type ctrl+alt+l nothing changes whatever is in the file. I think that’s not expected behavior. How to change it? CSS plugin is enabled.

Comments

Comment posted by correctly mapped to the file type

Does the file appear with CSS icon and

Comment posted by Jan

You are right. Pattern *.css was assign to Text. I reassigned it to stylesheet and all works fine. You are the magician. Please make an answer and I’ll approve it.

By