stylus-supremacy icon indicating copy to clipboard operation
stylus-supremacy copied to clipboard

Comments lost after formatting

Open cslee opened this issue 4 years ago • 4 comments

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;
}

cslee avatar Nov 24 '20 05:11 cslee

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

.
    // 

If anyone has a better solution please share :)

Wolff-H avatar Dec 20 '20 10:12 Wolff-H

Ping?

KnifeFed avatar Nov 19 '21 03:11 KnifeFed

+1, this is really troubling, any updates?

cj1128 avatar May 17 '22 08:05 cj1128

+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.

stefan-koenig-marmalade avatar Jun 24 '24 11:06 stefan-koenig-marmalade