LESS Comments not staying on new line after mixins
Opened this issue · 1 comments
NathanPaynter commented
User Settings:
"codeformatter_css_options":
{
"syntaxes": "css,less",
"format_on_save": false,
"indent_size": 2,
"indent_char": " ",
"indent_with_tabs": true,
"selector_separator_newline": true,
"end_with_newline": true,
"newline_between_rules": true,
"eol": "\n"
}
When formatting a file like this example, it turns into the second example.
.class-one {
.nested {
.mixin();
// Some comment
width: 100%;
}
}
turns into:
.class-one {
.nested {
.mixin(); // Some comment
width: 100%;
}
}
Not sure when this started happening but I just noticed it this week. Obviously if my comment is explaining what's below it, I'd like it to stay below the mixins, not be moved beside them. If there's something wrong with my settings, just let me know but I didn't see anything obvious.
NathanPaynter commented