23種設計模式之單例模式
阿新 • • 發佈:2022-03-30
外掛
- stylelint 樣式格式化 https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint
- scss Formatter: scss 格式化 https://marketplace.visualstudio.com/items?itemName=sibiraj-s.vscode-scss-formatter
- prettier : 程式碼格式化 https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
- eslint
- gitlens 方便檢視 git 修改記錄
- QuickType 將json資料轉為 可用型別 https://marketplace.visualstudio.com/items?itemName=doggy8088.quicktype-refresh
settings.json 開啟方式: 設定→ 搜尋 stylelint
在settings.json 中配置如下內容:
"editor.codeActionsOnSave" : {
"source.fixAll" : true ,
"source.fixAll.eslint" : true ,
"source.fixAll.stylelint" : true
} ,
|
這段程式碼新增後 會有刪除無效程式碼的行為,如影響開發可以將其全部改為 false。
目前發現問題:
- 函式中 return 後面的程式碼會被自動刪除