New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Prettier CSS] Multi-line comma separated selectors #1962
Comments
Agreed, this style kinda makes it uglier :) Maybe you can borrow the formatting guidelines from Nicolas' Ideomatic CSS. Properties sorted alphabetically because it is probably the only universal criteria (although I prefer Nicolas' version). |
Any solution for this? |
I’m making a pull request for this just now. |
Changes the behaviour for line breaking inside selector lists (those separated by ',') so that every selector is in its own line. Can be changed back to previous behaviour setting the option 'cssSelectorListSameLine' to 'true'. In the CLI is '--css-selector-list-same-line'. Fixes prettier#1962
Changes the behaviour for line breaking inside selector lists (those separated by ',') so that every selector is in its own line. Fixes prettier#1962
Changes the behaviour for line breaking inside selector lists (those separated by ',') so that every selector is in its own line. Fixes #1962
@yuchi will it solve this too? |
@jitendravyas no, this will not change with his PR. Could you open a separate issue for it? |
I think in terms of legibility, multi-lining comma separated selectors is much more readable. Could this be the default?
Example of desired effect:
What prettier currently emits:
The single line approach usually ends up creating really long lines that require horizontal scrolling and break n characters per line conventions (usually 80 or 120).
The text was updated successfully, but these errors were encountered: