vscode settings.json構成
1688 ワード
{
"files.autoSave": "afterDelay",
//
"editor.formatOnType": true,
"editor.formatOnSave": true,
//
"editor.lineHeight": 25,
//
"workbench.colorTheme": "Monokai",
// jsx
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[html]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
// vscode tabsize
"editor.detectIndentation": false,
"editor.cursorStyle": "line", //
// eslint
// tabsize
"editor.tabSize": 2,
"javascript.format.insertSpaceBeforeFunctionParenthesis": true, //
"vetur.format.defaultFormatterOptions": {
"prettier": {
"semi": false, //
"singleQuote": true //
},
"js-beautify-html": {
"wrap_attributes": "force-aligned"
// #vue html
}
},
// #
"vetur.format.defaultFormatter.html": "js-beautify-html",
// # vue js ts
"vetur.format.defaultFormatter.js": "vscode-typescript",
//
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
{
"language": "vue",
"autoFix": true
}
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
}