-
Notifications
You must be signed in to change notification settings - Fork 10
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
Option to not format comments. #29
Comments
Thanks for raising the issue. If and how to format comments is something I have been unsure about. So it is helpful to see this issue - may I ask what doc-block extension you use? I wonder if I should just switch doc comments to be formatted the way you have, make it an option, or just leave them untouched. |
The extension is Document This. I tried a couple of other extension as well. The extensions all work until the document gets reformatted. I then have to add the extra leading space or delete the comment if I want make any changes. Not a big deal but, in general, I'd prefer comments don't get reformatted anyway. |
I have been working on this. I took a look at what prettier does with JS files and it looks to me like it renders block comments as is, unless every line starts with a By default it will copy prettier and align all lines on the |
This is now out in |
The formatter currently strips all leading and trailing white space and then indents.
is now
Unfortunately, this breaks my doc-block extension since it is expecting an extra space after the indent.
The text was updated successfully, but these errors were encountered: