Exclude auto formatting for grid-template-areas:

With css grid-template-areas: it is optimal to keep each line on a seperate line, but currently phpstorm formatting strips this format and puts all the code one line.
As below:

```

grid-template-areas:
'image-big ... ... ... ...'
'image-big ... ... ... ...'
'image-big headline headline ... ...'
'image-big image-small article article article'
'... ... article article article'

to this:

grid-template-areas: 'image-big ... ... ... ...' 'image-big ... ... ... ...' 'image-big headline headline ... ...' 'image-big image-small article article article' '... ... article article article';

I know you can exclude this via the formatter off comments.

/*@formatter:off*/
grid-template-areas:
'image-big ... ... ... ...'
'image-big ... ... ... ...'
'image-big headline headline ... ...'
'image-big image-small article article article'
'... ... article article article';
/*@formatter:on*/

However, this causes additional friction when coding.
Is there a way we can global exclude grid-template-areas: or can the code-style rules be extended to be more granular to control these elements?

1

there is no way to exclude certain code fragments globally.

For more granular controls, please vote for https://youtrack.jetbrains.com/issue/WEB-10013

0

请先登录再写评论。