This is a creation in Article, where the information may have evolved or changed.
VS Code powerful Golag editing environment
Brief introduction
I now basically only use Vscode, Microsoft want to seriously do a thing, really is the quality of certification. Here is a Chinese manual, here I simply tell the story of my own experience
Used to develop Golang advantages
Can be configured according to workspace configuration edit configuration, I can a project a gopath, prevent all projects to share gopath caused by the transition, some problems of the index, in workspace config You can do this completely
{"go.gopath": "/home/ysy/work/lib1:/home/ysy/work/lib2:${workspaceRoot}"}
- Perfect support for tools such as Gocode,gofmt,godef, perfect completion, code indexing
- Super-expected go test support, directly help you to generate the button has wood, a little bit can go test!
What problem, encounter any bug, only need 4/6 level English level, you go to mention AH
Plug - ins
I'll mention 2 of them here.
- Go Go language development after all
- Vscode icons to let the directory tree improve a grade
Configuration
Speak only two
"window.zoomLevel": 1, 高分屏下面看起来有点小,这个是调整缩放比例的"editor.fontSize": 13, 字体
Some of the common commands
ctrl ` 打开终端ctrl shift o 符号列表(函数列表)ctrl shift p 打开命令行ctrl alt \ 编辑器切割