akalongman / akalongman/sublimetext-codeformatter

Multi line comments shift, new line created

Đang mở
#358 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
772
Fork
128
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.