VS Code-react项目格式代码配置

自动保存代码的时候希望可以格式话代码,下面是我的一些配置

// 将设置放入此文件中以覆盖默认设置
{
  "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"
  },
}

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值