vs code 中配置git go
{
"window.zoomLevel": 1,
"editor.fontSize": 15,
//"files.autoSave": "onFocusChange",
//"editor.fontWeight": "800",
// "go.goroot": "c:\\Go\\",
//"go.gopath": "D:\\go",
"gitlens.advanced.messages": {
"suppressFileNotUnderSourceControlWarning": true,
"suppressLineUncommittedWarning": true,
"suppressShowKeyBindingsNotice": true
},
"git.ignoreMissingGitWarning": true,
//"files.autoSave": "onFocusChange",
"files.encoding": "utf8",
"files.trimTrailingWhitespace": false,
"files.autoSaveDelay": 1000,
// 保存代码时自动编译
"go.buildOnSave":"off",
// 保存代码时优化
"go.lintOnSave":"package",
// 保存代码时检查潜在错误
"go.vetOnSave":"package",
// 保存代码时执行测试
"go.coverOnSave":false,
"go.useCodeSnippetsOnFunctionSuggest":true,
"go.useCodeSnippetsOnFunctionSuggestWithoutType":true,
// 代码格式化
"go.formatTool":"goreturns",
"go.gocodePackageLookupMode":"go",
"go.gotoSymbol.includeImports":true,
"go.docsTool":"godoc",
"go.inferGopath":true,
"go.useLanguageServer":true,
"go.autocompleteUnimportedPackages":true,
// go语言安装环境目录
"go.goroot":"C:\\Go\\",
// go语言工作目录
"go.gopath":"d:\\go",
"go.geocoderAutoBuild":false,
//"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
"explorer.confirmDelete": false,
//"liveServer.settings.donotShowInfoMsg": true,
"editor.wordWrapColumn": 3000,
"editor.wrappingIndent": "none",
"debug.allowBreakpointsEverywhere": true,
"debug.enableAllHovers": true,
"debug.inlineValues": true,
"debug.internalConsoleOptions": "neverOpen",
"debug.openDebug": "neverOpen",
"atomKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": true,
"liveServer.settings.donotVerifyTags": true,
// "workbench.colorTheme": "Monokai",
"workbench.iconTheme": "vscode-icons",
//"vsicons.dontShowNewVersionMessage": true,
"editor.suggestSelection": "first",
// "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"cSpell.userWords": [
"avue",
"bvue",
"goroot"
],
"terminal.integrated.rendererType": "dom",
"files.autoSave": "off",
"git.autoStash": true,
"git.path":"D:\\Git\\bin\\git.exe",
"gitlens.gitCommands.closeOnFocusOut": true,
// "terminal.integrated.shell.windows": "D:\\Git\\bin\\bash.exe",
"terminal.integrated.shellArgs.windows": [
"d:\\Git\\bin\\bash.exe",
],
// "terminal.integrated.shell.windows": "c:\\Go\\bin\\go.exe"
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe"
}
{
"window.zoomLevel": 1,
"editor.fontSize": 15,
//"files.autoSave": "onFocusChange",
//"editor.fontWeight": "800",
// "go.goroot": "c:\\Go\\",
//"go.gopath": "D:\\go",
"gitlens.advanced.messages": {
"suppressFileNotUnderSourceControlWarning": true,
"suppressLineUncommittedWarning": true,
"suppressShowKeyBindingsNotice": true
},
"git.ignoreMissingGitWarning": true,
//"files.autoSave": "onFocusChange",
"files.encoding": "utf8",
"files.trimTrailingWhitespace": false,
"files.autoSaveDelay": 1000,
// 保存代码时自动编译
"go.buildOnSave":"off",
// 保存代码时优化
"go.lintOnSave":"package",
// 保存代码时检查潜在错误
"go.vetOnSave":"package",
// 保存代码时执行测试
"go.coverOnSave":false,
"go.useCodeSnippetsOnFunctionSuggest":true,
"go.useCodeSnippetsOnFunctionSuggestWithoutType":true,
// 代码格式化
"go.formatTool":"goreturns",
"go.gocodePackageLookupMode":"go",
"go.gotoSymbol.includeImports":true,
"go.docsTool":"godoc",
"go.inferGopath":true,
"go.useLanguageServer":true,
"go.autocompleteUnimportedPackages":true,
// go语言安装环境目录
"go.goroot":"C:\\Go\\",
// go语言工作目录
"go.gopath":"d:\\go",
"go.geocoderAutoBuild":false,
//"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
"explorer.confirmDelete": false,
//"liveServer.settings.donotShowInfoMsg": true,
"editor.wordWrapColumn": 3000,
"editor.wrappingIndent": "none",
"debug.allowBreakpointsEverywhere": true,
"debug.enableAllHovers": true,
"debug.inlineValues": true,
"debug.internalConsoleOptions": "neverOpen",
"debug.openDebug": "neverOpen",
"atomKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": true,
"liveServer.settings.donotVerifyTags": true,
// "workbench.colorTheme": "Monokai",
"workbench.iconTheme": "vscode-icons",
//"vsicons.dontShowNewVersionMessage": true,
"editor.suggestSelection": "first",
// "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"cSpell.userWords": [
"avue",
"bvue",
"goroot"
],
"terminal.integrated.rendererType": "dom",
"files.autoSave": "off",
"git.autoStash": true,
"git.path":"D:\\Git\\bin\\git.exe",
"gitlens.gitCommands.closeOnFocusOut": true,
// "terminal.integrated.shell.windows": "D:\\Git\\bin\\bash.exe",
"terminal.integrated.shellArgs.windows": [
"d:\\Git\\bin\\bash.exe",
],
// "terminal.integrated.shell.windows": "c:\\Go\\bin\\go.exe"
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe"
}
{
"window.zoomLevel": 1,
"editor.fontSize": 15,
//"files.autoSave": "onFocusChange",
//"editor.fontWeight": "800",
// "go.goroot": "c:\\Go\\",
//"go.gopath": "D:\\go",
"gitlens.advanced.messages": {
"suppressFileNotUnderSourceControlWarning": true,
"suppressLineUncommittedWarning": true,
"suppressShowKeyBindingsNotice": true
},
"git.ignoreMissingGitWarning": true,
//"files.autoSave": "onFocusChange",
"files.encoding": "utf8",
"files.trimTrailingWhitespace": false,
"files.autoSaveDelay": 1000,
// 保存代码时自动编译
"go.buildOnSave":"off",
// 保存代码时优化
"go.lintOnSave":"package",
// 保存代码时检查潜在错误
"go.vetOnSave":"package",
// 保存代码时执行测试
"go.coverOnSave":false,
"go.useCodeSnippetsOnFunctionSuggest":true,
"go.useCodeSnippetsOnFunctionSuggestWithoutType":true,
// 代码格式化
"go.formatTool":"goreturns",
"go.gocodePackageLookupMode":"go",
"go.gotoSymbol.includeImports":true,
"go.docsTool":"godoc",
"go.inferGopath":true,
"go.useLanguageServer":true,
"go.autocompleteUnimportedPackages":true,
// go语言安装环境目录
"go.goroot":"C:\\Go\\",
// go语言工作目录
"go.gopath":"d:\\go",
"go.geocoderAutoBuild":false,
//"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
"explorer.confirmDelete": false,
//"liveServer.settings.donotShowInfoMsg": true,
"editor.wordWrapColumn": 3000,
"editor.wrappingIndent": "none",
"debug.allowBreakpointsEverywhere": true,
"debug.enableAllHovers": true,
"debug.inlineValues": true,
"debug.internalConsoleOptions": "neverOpen",
"debug.openDebug": "neverOpen",
"atomKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": true,
"liveServer.settings.donotVerifyTags": true,
// "workbench.colorTheme": "Monokai",
"workbench.iconTheme": "vscode-icons",
//"vsicons.dontShowNewVersionMessage": true,
"editor.suggestSelection": "first",
// "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"cSpell.userWords": [
"avue",
"bvue",
"goroot"
],
"terminal.integrated.rendererType": "dom",
"files.autoSave": "off",
"git.autoStash": true,
"git.path":"D:\\Git\\bin\\git.exe",
"gitlens.gitCommands.closeOnFocusOut": true,
// "terminal.integrated.shell.windows": "D:\\Git\\bin\\bash.exe",
"terminal.integrated.shellArgs.windows": [
"d:\\Git\\bin\\bash.exe",
],
// "terminal.integrated.shell.windows": "c:\\Go\\bin\\go.exe"
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe"
}


浙公网安备 33010602011771号