vsCode格式化代码时变成了这样

发布于 2022-09-11 16:02:54 字数 5466 浏览 16 评论 0

快要崩溃了,感觉要放弃vsCode了,可否有大佬提供下配置好的setting文件。。?(支持Vue)

 return function() {
                                            var s = this,
                                                u = arguments,
                                                l = function() {
                                                    var n, l;
                                                    if (!(e < o)) {
                                                        if (
                                                            (n = r.apply(
                                                                s,
                                                                u
                                                            )) === t.promise()
                                                        )
                                                            throw new TypeError(
                                                                "Thenable self-resolution"
                                                            );
                                                        (l =
                                                            n &&
                                                            ("object" ==
                                                                typeof n ||
                                                                "function" ==
                                                                    typeof n) &&
                                                            n.then),
                                                            y(l)
                                                                ? i
                                                                    ? l.call(
                                                                          n,
                                                                          a(
                                                                              o,
                                                                              t,
                                                                              I,
                                                                              i
                                                                          ),
                                                                          a(
                                                                              o,
                                                                              t,
                                                                              B,
                                                                              i
                                                                          )
                                                                      )
                                                                    : (o++,
                                                                      l.call(
                                                                          n,
                                                                          a(
                                                                              o,
                                                                              t,
                                                                              I,
                                                                              i
                                                                          ),
                                                                          a(
                                                                              o,
                                                                              t,
                                                                              B,
                                                                              i
                                                                          ),
                                                                          a(
                                                                              o,
                                                                              t,
                                                                              I,
                                                                              t.notifyWith
                                                                          )
                                                                      ))
                                                                : (r !== I &&
                                                                      ((s = void 0),
                                                                      (u = [
                                                                          n
                                                                      ])),
                                                                  (i ||
                                                                      t.resolveWith)(
                                                                      s,
                                                                      u
                                                                  ));
                                                    }

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

℉服软 2022-09-18 16:02:54
{
  "editor.fontSize": 22,
  "editor.multiCursorModifier": "ctrlCmd",
  "editor.snippetSuggestions": "top",
  "editor.formatOnPaste": true,
  "explorer.confirmDelete": false,
  "editor.tabSize": 2,
  "window.zoomLevel": 1,
  "editor.mouseWheelZoom": true,
  "prettier.singleQuote": true,
  "prettier.semi": false,
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  "vetur.format.defaultFormatterOptions": {
    "wrap_attributes": "force-aligned"
  },
  "emmet.syntaxProfiles": {
    "vue-html": "html",
    "vue": "html"
  },
  "emmet.triggerExpansionOnTab": true,
  "git.confirmSync": false,
  "git.enableSmartCommit": true,
  "git.autofetch": true,
  "gitlens.advanced.messages": {
    "suppressShowKeyBindingsNotice": true
  },
  "gitlens.gitExplorer.files.layout": "list",
  "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
  "gitlens.historyExplorer.enabled": true,
  "workbench.colorTheme": "Quiet Light",
  "eslint.autoFixOnSave": true,
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "html",
    "vue",
    {
      "language": "html",
      "autoFix": true
    }
  ],
  "prettier.eslintIntegration": true,
  "terminal.integrated.rendererType": "dom",
  "files.exclude": {
    "**/.git": false
  },
  "search.exclude": {
    "**/node_modules": true,
    "**/bower_components": true,
    "**/dist": true
  },
  "window.titleBarStyle": "custom",
  "files.autoSave": "afterDelay",
  "window.menuBarVisibility": "default",
  "breadcrumbs.enabled": true
}




插件:    VueHelper
        Vetur
        StandardJS - JavaScript Standard Style
        Markdown Preview Enhanced
        ESLint
        GitLens — Git supercharged
        Chinese (Simplified) Language Pack for Visual Studio Code
        JavaScript (ES6) code snippets
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文