vscode 配置

{
    "workbench.colorCustomizations": {
        "minimap.selectionHighlight": "#bbff00",
        "minimap.findMatchHighlight": "#ff0000",
        "editor.selectionBackground": "#135564",
        "editor.selectionHighlightBackground": "#135564",
        "editor.findMatchBackground": "#c9af3ca8", //Current SEARCH MATCH
        "editor.findMatchHighlightBackground": "#ff7b00a1" //Other SEARCH MATCHES
    },
    "git.enableSmartCommit": true,
    "explorer.confirmDelete": false,
    "explorer.confirmDragAndDrop": false,
    "git.ignoreMissingGitWarning": true,
    "git.autofetch": true,
    "editor.renderWhitespace": "all",
    "workbench.view.alwaysShowHeaderActions": true,
    "workbench.editor.highlightModifiedTabs": true,
    "workbench.editor.revealIfOpen": true,
    "workbench.editor.tabCloseButton": "right",
    "go.gopath": "/home/golang",
    "go.testTimeout": "60s",
    "diffEditor.renderSideBySide": true,
    "go.goroot": "/usr/local/go",
    "go.toolsEnvVars": {
        "GOPROXY": "https://goproxy.io,direct"
    },
    "go.testFlags": [
        "-v",
        "-count=1"
    ],
    "go.autocompleteUnimportedPackages": true,
    "workbench.tree.renderIndentGuides": "none",
    "http.proxyStrictSSL": false,
    "go.toolsManagement.checkForUpdates": "proxy",
    "go.languageServerFlags": [
        "-rpc.trace"
    ],
    "plantuml.exportMapFile": true,
    "plantuml.render": "PlantUMLServer",
    "plantuml.server": "https://www.plantuml.com/plantuml",
    "go.lintOnSave": "off",
  "go.vetOnSave": "off",
    "go.useLanguageServer": true,
    "go.languageServerFlags": [
        "-rpc.trace" // for more detailed debug logging
    ],
    "[go]": {
        "editor.formatOnSave": true,
        "editor.codeActionsOnSave": {
            "source.organizeImports": false,
        },
        // Optional: Disable snippets, as they conflict with completion ranking.
        "editor.snippetSuggestions": "none",
    },
    "[go.mod]": {
        "editor.formatOnSave": true,
        "editor.codeActionsOnSave": {
            "source.organizeImports": false,
        },
    },
    "gopls": {
        // Add parameter placeholders when completing a function.
        "usePlaceholders": true,
        // If true, enable additional analyses with staticcheck.
        // Warning: This will significantly increase memory usage.
        "staticcheck": false,
        "buildFlags": [
            "-tags=wireinject"
        ],
        "experimentalWorkspaceModule": true,
    },
    "goModGrapher.engine": "dot",
    "editor.formatOnSave": true,
    "remote.autoForwardPortsSource": "output",
    "search.searchEditor.reusePriorSearchConfiguration": true,
    "search.exclude": {
        "**/*_test.go": true
    },
    "go.addTags": {
        "transform": "camelcase"
    },
      "python.defaultInterpreterPath": "python2",
      "python.formatting.provider": "black",
      "editor.autoIndent": "advanced",
      "[json]": {
  
          "editor.quickSuggestions": {
              "strings": true
          },
          "editor.suggest.insertMode": "replace",
          "gitlens.codeLens.scopes": [
              "document"
          ]
      }
  }

 

上一篇:C++设计模式之单例模式


下一篇:静态内部类实现单例