Skip to content
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

Configure empty lines? #713

Open
cptSwing opened this issue Apr 19, 2022 · 4 comments
Open

Configure empty lines? #713

cptSwing opened this issue Apr 19, 2022 · 4 comments

Comments

@cptSwing
Copy link

Please excuse me if I haven't spotted any such option anywhere, but I'd like to know wether prettierX allows us to configure the amount of blank lines that are auto-collapsed?
I use 2 (or more) empty lines for visual separation of code blocks all the time, and am continuously annoyed by prettier collapsing them back down.

Here are some prettier issues with other users asking for the feature (alas, prettier seems to be locked down tight in the configuration department):

prettier/prettier#12053
prettier/prettier#1613
prettier/prettier#6916

@sardorboboshov
Copy link

I thought I was the only who is getting annoyed by that thing. That would be really great if we can "off" that feature on prettier.

@mlandisbqs
Copy link

+1 driving me bananas. started looking for alternatives. landed here.

@braebo
Copy link

braebo commented Oct 21, 2022

This has been driving me crazy for years. I really wish prettier wasn't the industry standard considering it doesn't allow me to configure my codes formatting. My code is much harder to read because of prettiers 'philosophy'.

@ZooDoo4U
Copy link

Really does need a setting to allow either max-blank-lines or preserve-blank-lines. It isn't too far fetched to think they are needed. When i code something i consider a function often has various step, validate input, setup needed processing, process and determine results. Been my practice to help keep the code clean and understandable that i'll put in comments and blank lines to use white space. Only to see them removed and arrrrggg why have any formatting? If vertical whitespace isn't important, we should get rid of horizontal whitespace as well, everything should rightfully be in column 1...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants