csscomb.js icon indicating copy to clipboard operation
csscomb.js copied to clipboard

Comment placement

Open clessg opened this issue 10 years ago • 1 comments

Is there a way to have commented-out declarations be automatically reordered?

.content {
  font-size: 18px;

  width: 1000px;
  margin: 10px;

  border: 1px solid #000;

  /* width: 200px; */
  background: #fff;
}

Current result:

.content
{
    font-size: 18px;

    width: 1000px;
    margin: 10px;

    border: 1px solid #000;
    /* width: 200px; */
    background: #fff;
}

Failing that, might it be possible to make CSSComb not touch comments? For example, this:

.content {
  font-size: 18px;

  /* This is pretty. */
  background: salmon;
}

gets converted into

.content
{
    font-size: 18px;
    /* This is pretty. */

    background: salmon;
}

And I would like to have the comment kept in the same position that it was before.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

clessg avatar Oct 02 '15 23:10 clessg

+1 for "not touch comments", having same issue

4ndv avatar May 21 '16 14:05 4ndv