VSCode以eslint風格自動格式化代碼(2020)

效果: 本文用 Vue 項目作示範。javascript 安裝插件 ESLint 而後 File -> Preference -> Settings(若是裝了中文插件包應該是 文件 -> 選項 -> 用戶), 搜索 eslint,點擊 Edit in setting.json 將如下選項添加到配置文件 vscode 2020以前版本html "eslint.autoFixOnSave": true
相關文章
相關標籤/搜索