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

Add comment context formatting to sway-fmt-v2 #2696

Closed
kayagokalp opened this issue Sep 2, 2022 · 0 comments · Fixed by #2697
Closed

Add comment context formatting to sway-fmt-v2 #2696

kayagokalp opened this issue Sep 2, 2022 · 0 comments · Fixed by #2697
Assignees
Labels
enhancement New feature or request formatter

Comments

@kayagokalp
Copy link
Member

Just like rustfmt, swayfmt should be able to cut down extra newline between comment blocks.

// This is a comment



// This is a comment
let number = 10;

should become something like

// This is a comment

// This is a comment
let number = 10;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request formatter
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant