2021-03-18

解决了vscode编写vue快捷键格式化代码的相关问题

setting.json配置文件
{
“git.ignoreWindowsGit27Warning”: true,
“editor.fontSize”: 20,
“liveServer.settings.donotShowInfoMsg”: true,
// #每次保存的时候自动格式化
“editor.formatOnSave”: true,
“sass-loader”: “^7.3.1”,
“[json]”: {
“editor.quickSuggestions”: {
“strings”: true
},
“editor.suggest.insertMode”: “replace”
},
“terminal.integrated.shell.windows”: “C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe”,
“explorer.confirmDelete”: false,
“vetur.experimental.templateInterpolationService”: false,
“vetur.ignoreProjectWarning”: true,
“vetur.validation.template”: false,
“window.zoomLevel”: 1,
“workbench.colorTheme”: “Monokai”,
“editor.tabSize”: 2,
“typescript.format.insertSpaceBeforeFunctionParenthesis”: false,
// 让函数(名)和后面的括号之间加个空格
“[javascript]”: {
“editor.defaultFormatter”: “vscode.typescript-language-features”
},
“javascript.format.insertSpaceBeforeFunctionParenthesis”: true,
“tslint.autoFixOnSave”: true,
“vetur.completion.autoImport”: true,
“vetur.format.defaultFormatter.html”: “js-beautify-html”,
“vetur.format.defaultFormatter.js”: “vscode-typescript”
}

.prettierrc文件:
{
“semi”: false,
“singleQuote”: true,
“printWidth”: 200, // 超过最大值换行
“htmlWhitespaceSensitivity”: “ignore”,
“trailingComma”: “none”,
“jsxBracketSameLine”: true,
“stylelintIntegration”: false,
}

很开心

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值