This is a creation in Article, where the information may have evolved or changed.
Finally can not stand the Liteide function definition of the jump, each time need to wait 2-3 seconds. After trying the thrill of vscode seconds, decisive change! But Vscode is not perfect, need to configure!
1. Enter the following command to avoid automatically prompting for panic (bug that occurs after go upgrade to 1.7)
-debug-s
2. Cmd+shift+b to run go build-v.
task . json{" version ": " 0.1.0 ", " command " : "Go" , "Isshellcommand" : true , " Showoutput ": " always " , "Echocommand" : true , : [{ "TaskName" : "Build" , "args" : [ "-V" , ". "], " Isbuildcommand ": true}]}
[Https://github.com/Microsoft/vscode-go/wiki/Usage-FAQ]
3. Cmd+shift+t to run go test-v.
keybindings.json// 将键绑定放入此文件中以覆盖默认值[ "key""shift+space", "command""editor.action.triggerSuggest", "when""editorHasCompletionItemProvider && editorTextFocus && !editorReadonly" }, "key""shift+cmd+t", "command""go.test.package" }]
[https://github.com/Microsoft/vscode-go/blob/master/package.json#L79]