Go 开发利器:VSCode

为什么选择 VSCode?

  • 微软官方出品,更新迭代快

  • 强大的插件:代码跳转,自动格式化,错误检测等

下载安装

code 命令添加到系统 PATH 中

效果:在终端输入 code <filename/foldername> 就能用 vscode 打开文件或文件夹

  • 以 mac 为例:在 vscode 中使用快捷键 command + shif + p,

  • 输入 shell command,选择 Shell Command:Install 'code' command in PATH,如下图:

    shell command

安装 Go 插件

Go 开发相关配置

最后更新于

这有帮助吗?