自动保存代码的时候希望可以格式话代码,下面是我的一些配置
// 将设置放入此文件中以覆盖默认设置
{
"editor.wrappingColumn": -1,
// 每行最大字符数(0 = 禁用)。
"html.format.wrapLineLength": 0,
// 为指定的语法定义配置文件或使用带有特定规则的配置文件。
"emmet.syntaxProfiles": {
"javascript": "jsx"
},
"window.zoomLevel": 0,
"editor.fontSize": 20,
"editor.tabSize": 2,
"explorer.confirmDelete": false,
"git.enableSmartCommit": true,
"emmet.triggerExpansionOnTab": true,
"search.quickOpen.includeSymbols": true,
"workbench.startupEditor": "newUntitledFile",
"explorer.confirmDragAndDrop": false,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"files.associations": {
"*.cjson": "jsonc",
"*.wxss": "css",
"*.wxs": "javascript",
"*.mina": "vue",
"*.jsx": "javascriptreact",
".babalrc": "jsonc"
},
"emmet.includeLanguages": {
"wxml": "html"
},
"minapp-vscode.disableAutoConfig": true,
"editor.formatOnSave": true,
"editor.formatOnType": false,
"editor.quickSuggestions": {
"strings": true
},
"[vue]": {},
"workbench.fontAliasing": "antialiased",
"javascript.updateImportsOnFileMove.enabled": "always",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"flowide.enabled": false,
"flow.useBundledFlow": false,
"flow.useCodeSnippetOnFunctionSuggest": false,
"flow.useLSP": false,
"flowide.useCodeSnippetsOnFunctionSuggest": false,
"flow.useNPMPackagedFlow": false,
"flow.stopFlowOnExit": false,
"flow.runOnEdit": false,
"flow.showStatus": false,
"flow.enabled": false,
"typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": false,
"javascript.format.insertSpaceAfterKeywordsInControlFlowStatements": false,
"git.alwaysShowStagedChangesResourceGroup": true,
"git.autoStash": true,
"search.useGlobalIgnoreFiles": true,
"git.allowForcePush": true,
"git.autofetch": true,
"git.alwaysSignOff": true,
"git.fetchOnPull": true,
"git.confirmSync": false,
"typescript.updateImportsOnFileMove.enabled": "always",
"editor.formatOnPaste": true,
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
}