Vscode for Go 1.7

Source: Internet
Author: User
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]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.