1. 程式人生 > 其它 >23種設計模式之單例模式

23種設計模式之單例模式

外掛 

 

settings.json 開啟方式: 設定→ 搜尋 stylelint 

 

 

在settings.json 中配置如下內容:

"editor.codeActionsOnSave": {     "source.fixAll": true,     "source.fixAll.eslint"
: true,     "source.fixAll.stylelint": true   },

這段程式碼新增後 會有刪除無效程式碼的行為,如影響開發可以將其全部改為 false。

目前發現問題:

  1. 函式中 return 後面的程式碼會被自動刪除