akalongman / akalongman/sublimetext-codeformatter

Multi line comments shift, new line created

未关闭
#358 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
772
派生
128
PR 合并指标
30 天内没有已合并 PR

描述

Hello,

I have multi line comments in my sass code and I would like the code to look like this in the end:

```
/*
Page/Post layout
*/
@media (min-width: 1024px) {
.page-head,
.type-page {
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
}

/*
Header, Navigation
*/
@media (min-height: 600px) {
.logo__img {
width: 9rem;
}
}
```

But instead codeformatter moves my comment blocks one line up and creates a new line unterneath. I've played with the settings for scss code, but couldn't achieve what I wanted.

```
/*
Page/Post layout
*/

@media (min-width: 1024px) {
.page-head,
.type-page {
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
}
/*
Header, Navigation
*/

@media (min-height: 600px) {
.logo__img {
width: 9rem;
}
```

I don't want my rules to be seperated by new line, though (`newline_between_rules`). Only split comment sections by a new line.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。