Insert space before px in container queries

Insert space before px in container queries and doesn't format correctly with indent → compiler error after autoformatting

0

Can you please share a bit more context around the problem? Which version of the IDE are you using? What language is it - SASS, Less?

0

Sure, Lena

- WebStorm 2023.3.1
- Less (_listings.less file)

Renamed it to _listings.css and got 

0

I see, thanks for update. It must be fixed in the upcoming 2024.2 release, please see https://youtrack.jetbrains.com/issue/WEB-63007/Wrong-code-indent-in-nested-container-queries-LESS.

1

Can I somehow prevent the container formatting at all?

0

You can use special comments or glob patterns to exclude certain blocks/files from formstting, please refer to Code Style | WebStorm Documentation (jetbrains.com).

1

Thank you, that solve the problem

0

请先登录再写评论。