vsCode 前端插件推荐-和插件配置


参考自网站:https://segmentfault.com/a/1190000011779959

 

插件安装完成之后,还要对一些插件进行配置,例如:

vetur默认配置,
配置的过程:
打开 文件 > 首选项 > 用户设置(U) > 点击右上角---打开设置(json)
  // 执行文字相关的导航或操作时将用作文字分隔符的字符  去掉 - 功能:双击css样式选中整个连字符
  "editor.wordSeparators": "`~!@#$%^&*()=+[{]}\\|;:'\",.<>/?",
  //vetur的配置
  "emmet.syntaxProfiles": {
    "javascript": "jsx",
    "vue-html": "html",
    "vue": "html"
  },
  // 使用插件格式化 html
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "html",
    "vue",
    {
      "language": "vue",
      "autoFix": true
    }
  ],
  
  // 打开文件自动检测缩进
  "editor.detectIndentation": false,
  // tab缩进2个字符
  "editor.tabSize": 2,

 

参考内容:https://www.cnblogs.com/zhaoshujie/p/9834654.html

     https://www.cnblogs.com/liuxianan/p/vscode-plugin-overview.html

     https://blog.csdn.net/a578024797/article/details/80935799


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM