我有一個.sass使用 IntelliJ IDE 的樣式表的 Angular 專案。
使用時::ng-deep,IntelliJ 將雙冒號標記為錯誤,并在重新格式化時拆分冒號。這非常不方便,因為我已將自動格式化配置為我的提交管道的一部分。
有沒有辦法:
- 更新樣式規則以將雙冒號識別為有效?
或者
- 僅針對 Sass 檔案關閉提交時自動格式化?
例子:
.icon-container
width: 100%
font-size: xxx-large
text-align: center
:host ::ng-deep
text-align: center
格式不正確為:
.icon-container
width: 100%
font-size: xxx-large
text-align: center
:host: :ng-deep
text-align: center
uj5u.com熱心網友回復:
請關注WEB-42952和鏈接的票證以獲取更新。
目前,我只能建議將您的.sass檔案添加到不格式化:設定中的串列| 編輯 | 代碼樣式,格式化程式
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/410873.html
標籤:
