{ "editor.fontSize": 14, "eslint.validate": [ "javascript", "javascriptreact", { "language": "html", "autoFix": true }, { "language": "vue", "autoFix": true } ], "editor.tabSize": 2, "eslint.run": "onSave", // 建議改爲onSave,保存時進行自動運行eslint "eslint.autoFixOnSave": true, "gitlens.advanced.messages": { "suppressResultsExplorerNotice": true, "suppressShowKeyBindingsNotice": true, "suppressWelcomeNotice": true }, "vetur.format.defaultFormatter.html": "js-beautify-html", "workbench.colorTheme": "Visual Studio Dark", "gitlens.historyExplorer.enabled": true, "vetur.format.defaultFormatter.html": "prettier", "fileheader.Author": "MR.wang", "fileheader.LastModifiedBy": "MR.wang", } 複製代碼
格式化代碼:我是不喜歡用vetur插件的格式化的(換行看着不舒服),這裏須要用到beautify插件去格式化template代碼來防止換行。具體操做是ctrl+P 輸入>beautify 而後選擇html。javascript
fileheader安裝好 進行如圖配置便可,也是輸入ctrl+P 輸入>fileheader就會對文件加上具體建立的時間和做者。html
使用git的話 建議使用gitlens插件!!使用方法很簡單,都點一下擴展的按鈕就明白具體的功能了。vue