码迷,mamicode.com
首页 > 其他好文 > 详细

VsCode Vue代码及插件配置

时间:2020-03-06 15:44:11      阅读:536      评论:0      收藏:0      [点我收藏+]

标签:format   函数   lse   save   tier   parent   one   单引号   int   

visual code vue代码settings.json配置

代码格式化使用prettier - Code formatter  

插件使用

技术图片

 

 技术图片

 

 

{
  "workbench.iconTheme": "vscode-icons",
  "files.autoSave": "afterDelay",
  "liveServer.settings.CustomBrowser": "chrome",
  "editor.formatOnSave": true,
  "html.format.indentInnerHtml": true,
  "html.format.indentHandlebars": true,
  "eslint.format.enable": true,
  "prettier.requirePragma": true,
  "[vue]": {
    "editor.defaultFormatter": "octref.vetur"
  },
  //分号
  "prettier.semi": false,
  //单引号包裹字符串
  "prettier.singleQuote": true,
  //html格式化依赖  默认为none
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  //函数前加空格
  // "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  //没有下边这个 上边不生效
  "vetur.format.defaultFormatter.js": "vscode-typescript",
}

  

VsCode Vue代码及插件配置

标签:format   函数   lse   save   tier   parent   one   单引号   int   

原文地址:https://www.cnblogs.com/yang6/p/12426480.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!