実現したいこと
vscodeのBeautifyでsassを整形したい
発生している問題
Beautifyを使用してsassを整形すると、
以下のように@include の閉じ括弧とセミコロンの間に空行が入ってしまいます。
調べてみたのですが、解決できず困っております。
お知恵を貸して頂けましたら幸いです。
scss
1 .container { 2 .divIn { 3 margin-right: auto; 4 margin-left: auto; 5 6 @include pc { 7 width: 90%; 8 } 9 10 ; 11 12 } 13 } 14
以下は理想の整形結果
scss
1 .container { 2 .divIn { 3 margin-right: auto; 4 margin-left: auto; 5 6 @include pc { 7 width: 90%; 8 }; 9 } 10 }
以下は現在のsettings.jsonです。
json
1{ 2 "[html]": { 3 "editor.defaultFormatter": "vscode.html-language-features" 4 }, 5 "[javascript]": { 6 "editor.defaultFormatter": "HookyQR.beautify" 7 }, 8 "php-cs-fixer.executablePath": "${extensionPath}/php-cs-fixer.phar", 9 "php-cs-fixer.lastDownload": 1636005513696, 10 "editor.tabSize": 2, 11 "[scss]": { 12 "editor.defaultFormatter": "HookyQR.beautify", 13 } 14}

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。