Search code examples
htmlcssintellij-ideaintellij-plugin

Reformat code and CSS completion in Intellij IDEA


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.


Solution

  • 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