「分分钟上手 VS Code」配置参数详解

🕓 · ☕1 min read
🏷️
  • #vscode
  •  1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    
    {
        "editor.fontSize": 14, // 字体大小
        "editor.formatOnSave": true, // 保存时自动格式化
        "files.autoSave": "onFocusChange", // 失去焦点时自动保存文件
        "breadcrumbs.enabled": true, // 显示文件路径
        "window.zoomLevel": 0, // 窗口缩放比例
        "workbench.statusBar.visible": true, // 隐藏底部状态栏
        "workbench.colorTheme": "An Old Hope Italic", // 编辑器主题
        "workbench.iconTheme": "eq-material-theme-icons-ocean", // 图标主题
        "workbench.startupEditor": "newUntitledFile", // 编辑器欢迎设置    
        "explorer.confirmDragAndDrop": false, // 移动文件时是否需要确认
        "explorer.confirmDelete": false, // 删除文件时是否需要确认
        // 优化右侧预览地图样式
        "editor.minimap.renderCharacters": false,
        "editor.minimap.maxColumn": 200,
        "editor.minimap.showSlider": "always",
        // go开发配置
        "go.buildOnSave": "workspace",
        "go.lintOnSave": "package",
        "go.vetOnSave": "package",
        "go.buildFlags": [],
        "go.lintFlags": [],
        "go.vetFlags": [],
        "go.coverOnSave": false,
        "go.autocompleteUnimportedPackages": true,
        "go.useLanguageServer": true,
        "go.inferGopath": true,
        "go.docsTool": "godoc",
        "go.gocodePackageLookupMode": "go",
        "go.gotoSymbol.includeImports": true,
        "go.useCodeSnippetsOnFunctionSuggest": true,
        "go.useCodeSnippetsOnFunctionSuggestWithoutType": true,
        "go.formatTool": "goreturns",
        "go.gocodeAutoBuild": false,
        "go.liveErrors": {
            "enabled": true,
            "delay": 0
        },
        "go.gopath": "/data/go",
        "go.goroot": "/usr/local/Cellar/go/1.12.7/libexec",
        // php开发配置
        "php.validate.executablePath": "/usr/local/bin/php",
        "php.suggest.basic": false,
        "php-cs-fixer.executablePath": "/usr/local/bin/php-cs-fixer",
        // git配置
        "git.autofetch": true,
        "gitlens.advanced.messages": {
            "suppressFileNotUnderSourceControlWarning": true
        },
        "diffEditor.ignoreTrimWhitespace": true,
        // vscode-fileheader插件配置
        "fileheader.Author": "艾逗笔",
        "fileheader.LastModifiedBy": "艾逗笔",
        "fileheader.tpl": "/*\r\n * @Author: {author} <http://idoubi.cc>*/\r\n",
    }