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

Comments lost after formatting #77

Open
cslee opened this issue Nov 24, 2020 · 4 comments
Open

Comments lost after formatting #77

cslee opened this issue Nov 24, 2020 · 4 comments

Comments

@cslee
Copy link

cslee commented Nov 24, 2020

Comments with // before other comments in /* ... */ are lost after formatting

Before:

// line1
// line2
/* blah blah blah */
.class1
  margin 8px

After:

/* blah blah blah */
.class1 {
  margin: 8px;
}

Comments with // at the end of the file are also lost

Before:

.class1
  margin 8px

// line1
// line2

After:

.class1 {
  margin: 8px;
}
@Wolff-H
Copy link

Wolff-H commented Dec 20, 2020

Same. My temporary solution is to put an empty identifier at the bottom end, like

.
    // 

If anyone has a better solution please share :)

@KnifeFed
Copy link

Ping?

@cj1128
Copy link

cj1128 commented May 17, 2022

+1, this is really troubling, any updates?

@stefan-koenig-marmalade

+1, please make this selectable in the settings
While testing different styling options, it's very annoying if commented lines are removed automatically on file save.

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