如何配置代码自动校验功能
生活随笔
收集整理的這篇文章主要介紹了
如何配置代码自动校验功能
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
這里你需要下載安裝 VScode編輯器:
安裝完可以看到底部配置項(xiàng)內(nèi)容:
修改內(nèi)容為:
右邊的內(nèi)容為:
{"window.zoomLevel": 0,// Controls the font size in pixels."editor.fontSize": 14,// The number of spaces a tab is equal to. This setting is overridden based on the file contents when `editor.detectIndentation` is on."editor.tabSize": 2,// Always show the ESlint status bar item."eslint.alwaysShowStatus": true,// An array of language ids which should be validated by ESLint"eslint.validate": ["javascript","javascriptreact",{"language": "vue","autoFix": true},"html","vue"],// Turns auto fix on save on or off."eslint.autoFixOnSave": true }因?yàn)檫@個(gè)項(xiàng)目我使用了vue, r如果是react或者其他語(yǔ)言配置相似,適當(dāng)修改內(nèi)容。
總結(jié)
以上是生活随笔為你收集整理的如何配置代码自动校验功能的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 公积金贷款利率2022最新利率表,各行公
- 下一篇: 分享几个vscode的插件