把下面的复制到图三,中,如果缺少什么插件,在下载
{
"workbench.tree.indent": 26,
"files.autoSave": "onFocusChange",
"workbench.colorTheme": "Atom One Dark",
"git.openRepositoryInParentFolders": "always",
"workbench.preferredDarkColorTheme": "Solarized Dark",
"editor.fontSize": 16,
"editor.fontVariations": false,
"editor.tokenColorCustomizations": {
"[Atom One Dark]": {
//"keywords": "#BD814C", // 关键字
"variables": "#B6B9B4", // 变量名
"strings": "#76b975b0", // 字符串
//"functions": "#416ed8", // 函数名
//"types": "#FF0000",
"textMateRules": [
{
"scope": "keyword.operator", // 加减乘除的颜色
"settings": {
"foreground": "#B6B9B4"
}
},
{
"scope":"keyword", //package type function struct 等关键字的颜色
"settings": {
"foreground": "#CF8E6D",
}
},
{
"scope":"keyword.control", //import的颜色
"settings": {
"foreground": "#BD814C"
}
},
{
"scope":"keyword.other", //import的颜色
"settings": {
"foreground": "#BD814C"
}
},
{
"scope":"entity.name.type", // 定义的类型名称的颜色
"settings": {
"foreground": "#B6B9B4",
}
},
{
"scope":"entity.name.function",
"settings": {
"foreground": "#5b9fd6",
}
},
{
"scope": "meta.function.parameters",
"settings": {
"foreground": "#FF0000"
}
}
//{
// "scope": "keyword.type.go",
// "settings": {
// "foreground": "#FF0000"
// }
//}
//{
// "scope": [
// "variable.other.go",
// "variable.other.readwrite.go",
// "variable"
// ],
// "settings": {
// "foreground": "#f2f0f1" // 未用后的变量颜色
// }
//},
//{
// "scope": [
// "variable.other.used.go",
// "variable.other.assignment.go"
// ],
// "settings": {
// "foreground": "#6B7077" // 使用的变量颜色
// }
//}
]
},
//"comments": "#5e615f", // 注释
//"keywords": "#BD814C", // 关键字
//"variables": "#f2f0f1", // 变量名
//"strings": "#76b975b0", // 字符串
// "functions": "#416ed8", // 函数名
//"numbers": "#9d1fbd", // 数字
//"textMateRules": [
// {
// "scope": [
// "variable"
// ],
// "settings": {
// "foreground": "#f2f0f1"
// //"foreground": "#416ed8" // 方法定义颜色设置为浅蓝色
// }
// },
//]
},
"editor.semanticTokenColorCustomizations": {
"rules": {
"variable.read": {
"foreground": "#FF0000" // 未使用的类型和方法颜色,这里使用红色
},
"variable.write": {
"foreground": "#00FF00" // 使用后的类型和方法颜色,这里使用绿色
}
}
},
"editor.lineHeight": 1.4,
"editor.fontFamily": "JetBrains Mono, 'Courier New', monospace",
"editor.fontLigatures": true,
"terminal.integrated.fontFamily": "monospace",
"editor.links": false,
//"go.lintTool": "golangci-lint",
//"go.lintFlags": [
// "--disable-all",
// "--enable=errcheck"
//],
"editor.comments.insertSpace": false,
"javascript.format.insertSpaceAfterCommaDelimiter": false,
"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
"javascript.format.insertSpaceAfterKeywordsInControlFlowStatements": false,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
"editor.renderLineHighlightOnlyWhenFocus": true,
"terminal.integrated.lineHeight": 1.2,
"terminal.integrated.fontSize": 15,
"problems.showCurrentInStatus": true,
"problems.decorations.enabled": false,
"todo-tree.highlights.defaultHighlight": {
"icon": "alert",
"type": "text",
"foreground": "#050505",
"background": "#f2f0f1",
"opacity": 50,
"iconColour": "#416ed8"
},
"todo-tree.highlights.customHighlight": {
"TODO": {
"icon": "check",
"type": "line"
},
"FIXME": {
"foreground": "#050505",
"iconColour": "#c2da9a",
"gutterIcon": true
}
},
"workbench.tree.renderIndentGuides": "always",
"remote.SSH.remotePlatform": {
"10.10.201.205": "linux"
},
"git.ignoreLegacyWarning": true,
"gitlens.graph.minimap.dataType": "lines",
"editor.minimap.renderCharacters": false,
//"go.editorContextMenuCommands": {
// "benchmarkAtCursor": true
//},
//"go.highlightReferences": true,
//"go.highlightUsesOfColor": {
// "write": "#FFA07A",
// "read": "#ADD8E6",
// "undeclared": "#FF0000"
//},
"go.formatTool": "gofmt", // go格式化工具
"go.lintFlags": [ // 提示等级
"-min_confidence=.8"
],
// 检查工具,默认staticcheck
"go.lintTool": "golangci-lint",
// go language service设置
"gopls": {
// 点击import添跳转到目录,默认是跳转到浏览器中去打开pkg.go.dev中的官方文档
"ui.navigation.importShortcut": "Definition",
// 关闭鼠标悬浮在方法上面出现的pkg.go.dev的链接跳转提示
"ui.documentation.linksInHover": false
},
// 输入提示上下文
// https://github.com/golang/vscode-go/blob/master/docs/settings.md#uidiagnosticanalyses
"go.editorContextMenuCommands": {
"toggleTestFile": true,
"addTags": true,
"removeTags": false,
"fillStruct": true,
"testAtCursor": true,
"testFile": false,
"testPackage": false,
"generateTestForFunction": true,
"generateTestForFile": false,
"generateTestForPackage": false,
"addImport": true,
"testCoverage": true,
"playground": true,
"debugTestAtCursor": true,
"benchmarkAtCursor": false
},
// go结构体tag设置,
"go.addTags": {
"tags": "json",
// "options": "", // 项目中不需要omitempty属性可以设置为空 default "json=omitempty"
"promptForTags": false,
"transform": "camelcase", // Options: snakecase, camelcase, lispcase, pascalcase, keep
"template": ""
},
// git设置,vscode中设置中文后,鼠标悬浮会有中文提示
"git.untrackedChanges": "separate",
"git.alwaysShowStagedChangesResourceGroup": true,
// 工作区颜色设置,可自定义主题,此处的配置优先级为最高,切换主题不会改变这里的配置
"workbench.colorCustomizations": {
// "statusBar.background": "#909399",
// "panel.background": "#909399",
"editor.background": "#21252B",
"sideBar.background": "#282C34",
/* */
// "activityBar.background": "#EBEEF5",
// "menu.background": "#504f4f",
// "editor.selectionHighlightBackground": "#CD5C5C"
//"editor.selectionBackground": "#050505",
// 鼠标选择的文字的颜色
"editor.selectionHighlightBackground": "#be5343ea",
// ctrl + f 时的搜索时选中的文字颜色
"editor.findMatchBackground": "#be5443"
},
"go.toolsManagement.autoUpdate": true,
"workbench.editor.enablePreview": false,
"editor.bracketPairColorization.enabled": false,
"diffEditor.codeLens": true,
"editor.codeLens": true,
"editor.minimap.enabled": false,
"workbench.iconTheme": "vscode-jetbrains-icon-theme-2023-auto",
"editor.unicodeHighlight.ambiguousCharacters": false,
"go.coverOnTestPackage": false,
"go.inlayHints.constantValues": true,
"editor.inlineSuggest.showToolbar": "never",
"editor.screenReaderAnnounceInlineSuggestion": false,
"editor.parameterHints.enabled": false,
"go.inlayHints.parameterNames": true
}