0
点赞
收藏
分享

微信扫一扫

vscode+vue+stylus+github创建新项目

// 以下为stylus配置
  "stylusSupremacy.insertColons": false, // 是否插入冒号
  "stylusSupremacy.insertSemicolons": false, // 是否插入分好
  "stylusSupremacy.insertBraces": false, // 是否插入大括号
  "stylusSupremacy.insertNewLineAroundImports": false, // import之后是否换行
  "stylusSupremacy.insertNewLineAroundBlocks": false, // 两个选择器中是否换行
  //一下为vue设置
  "vetur.format.defaultFormatterOptions": {
  "js-beautify-html": {
  // #vue组件中html代码格式化样式
  "wrap_attributes": "force-aligned", //也可以设置为“auto”,效果会不一样
  "wrap_line_length": 200,
  "end_with_newline": false,
  "semi": false,
  "singleQuote": true
  },
  "prettier": {
  //设置分号
  "semi": false,
  //双引号变成单引号
  "singleQuote": true,
  //禁止随时添加逗号,这个很重要。找了好久
  "trailingComma": "none"
  }
  },
  "[jsonc]": {
  "editor.defaultFormatter": "esbenp.prettier-vscode"
  }

举报

相关推荐

0 条评论