由于本地有 .editorconfig,visual studio code User %APPDATA%\Code\User\settings.json 不会生效
{
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"workbench.colorTheme": "Tomorrow",
"editor.fontFamily": "'BigBlue TerminalPlus', Consolas, 'Courier New', monospace",
"security.workspace.trust.untrustedFiles": "open",
"window.restoreWindows": "none",
"workbench.iconTheme": "material-icon-theme",
"editor.formatOnSave": true,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.minimap.enabled": false,
"editor.tabSize": 2,
"explorer.confirmDelete": false,
"[sass]": {
"editor.defaultFormatter": "syler.sass-indented"
},
"editor.wordWrapColumn": 320,
"html.format.wrapLineLength": 320,
"prettier.printWidth": 320
}
要修改本地 .editorconfig
max_line_length = 320