-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Mutliline comments always indented with spaces #891
Comments
I've been meaning to add width + spacing options to the playground for a while now, hopefully I will get to it soon. Is this bug frustrating enough for you that I should push out a release right away? |
Nah, it's not that bad. |
Is this broken in 0.26? Currently CSharpier formats my multiline comments always with spaces.
|
That seems correct to me, tabs are for indentation, and spaces inside of comments are for alignment: /*
e.g.: magic?.property
^
if this is styled with tabs, `^` would point to different places
*/
public static async extern protected whatever function Name() |
I don't think I intended for the CSharpier to change tabs within block comments, it may have been a side effect of supporting the first two comments in this test file. I'm inclined to say that CSharpier should work the way the file on the left looks, Replacing the indentation in front of the comment, but leaving anything "within" the comment alone. In this case it replaced the tab that was within a comment with 4 spaces. |
I would agree with your given expectation. |
I opened #1075 to address it |
=>
.csharpierrc.yaml
Btw, there is no way to check this on playground because it's always in spaces mode.
The text was updated successfully, but these errors were encountered: