akalongman / akalongman/sublimetext-codeformatter

Multi line comments shift, new line created

オープン
#358 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。