关于prettier配置的一些问题

更新时间:2023-06-28 05:34:10 阅读: 评论:0

},
// 格式化stylus, 需安装Manta's Stylus Supremacy插件
"stylusSupremacy.inrtColons": fal, // 是否插⼊冒号
"stylusSupremacy.inrtSemicolons": fal, // 是否插⼊分好
"stylusSupremacy.inrtBraces": fal, // 是否插⼊⼤括号
"stylusSupremacy.inrtNewLineAroundImports": fal, // import之后是否换⾏
"stylusSupremacy.inrtNewLineAroundBlocks": fal,
"vsicons.dontShowNewVersionMessage": true,
"launch": {
"configurations": [],
"compounds": []
}, // 两个选择器中是否换⾏
"editor.formatOnType": true,
"editor.detectIndentation":fal,
"files.autoSave": "onFocusChange",
// 使能每⼀种语⾔默认格式化规则
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
south africa},
"[less]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
/*  prettier的配置 */salmon
"prettier.printWidth": 80, // 超过最⼤值换⾏
"prettier.tabWidth": 2, // 缩进字节数
"prettier.uTabs": fal, // 缩进不使⽤tab,使⽤空格
"prettier.mi": true, // 句尾添加分号
"prettier.singleQuote": true, // 使⽤单引号代替双引号
"prettier.proWrap": "prerve", // 默认值。因为使⽤了⼀些折⾏敏感型的渲染器(如GitHub comment)⽽按照markdown⽂本样式进⾏折⾏  "prettier.arrowParens": "avoid", //  (x) => {} 箭头函数参数只有⼀个时是否要有⼩括号。avoid:省略括号
booty
"prettier.bracketSpacing": true, // 在对象,数组括号与⽂字之间加空格 "{ foo: bar }"
"prettier.disableLanguages": ["vue"], // 不格式化vue⽂件,vue⽂件的格式化单独设置
"dOfLine": "auto", // 结尾是 \n \r \n\r auto
"prettier.eslintIntegration": true, // 让prettier使⽤eslint的代码格式进⾏校验
"prettier.htmlWhitespaceSensitivity": "ignore",
"prettier.ignorePath": ".prettierignore", // 不使⽤prettier格式化的⽂件填写在项⽬的.prettierignore⽂件中
"prettier.jsxBracketSameLine": fal, // 在jsx中把'>' 是否单独放⼀⾏
"prettier.jsxSingleQuote": fal, // 在jsx中使⽤单引号代替双引号
"prettier.parr": "babylon", // 格式化的解析器,默认是babylon男性英文名字
"quireConfig": fal, // Require a 'prettierconfig' to format prettier
"prettier.stylelintIntegration": true, // 让prettier使⽤stylelint的代码格式进⾏校验
james ailingComma": "none", // 在对象或数组最后⼀个元素后⾯是否加逗号(在ES5中加尾逗号) none/es5/all
"prettier.tslintIntegration": true, // 让prettier使⽤tslint的代码格式进⾏校验
//配置新建⽂件注释和⽅法注释
"figObj": {
蓝晶晶
"createFileTime": true,//设置为true则为⽂件新建时候作为date,否则注释⽣成时间为date
"autoAdd": true,//⾃动⽣成注释,⽼是忘记的同学可以设置
"annotationStr": {
makeout
"head": "/*",
"middle": " * @",
文胸的英文"end": " */",
"u": true//设置⾃定义注释可⽤
},
what can i do
"headInrtLine": {
"php": 2
}
},
"fileheader.cursorMode": {
"description":"",
"param ":"",
"return":""
},
"fileheader.customMade": {
"Description":"" ,//⽂件内容描述
"Author":"zhuangguobiao",//编辑⼈
"Date": "Do not edit",//时间
"LastEditTime": "Do not edit",四级准考证号查询网站

本文发布于:2023-06-28 05:34:10,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/90/160161.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:注释   是否   括号   默认   种语
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图