VSCode-代码运行相关

快捷键

Ctrl+Shift+P搜索
Ctrl+F5 运行代码
Ctrl+, 打开设置
Ctrl+Shift+E 打开文件
Ctrl+Alt+C 打开博客园

功能

设置文件:settings.json

  1. 隐藏以及排除git相关文件
    image
  2. 设置界面字体
    image

Go语言

Go运行-> 教程-> 测试

  1. 安装Go语言
    https://www.cnblogs.com/nrocky/p/14449987.html
  2. 配置VSCode
    安装推荐的相关插件
  3. 安装go相关插件失败
    网络问题,需要代理
    1)更换下载源
    https://blog.51cto.com/u_7075695/5099699

2)多尝试几次
3) 或使用命令安装
image

  1. go: cannot find main module, but found .git/config
go env // 查看环境配置
go env -w GO111MODULE= off // 关闭

Ctrl+F5运行
image

  1. go module
    基础知识
    go module详解
  2. launch.json
posted @ 2023-06-26 16:16  -Rocky-  阅读(10)  评论(0编辑  收藏  举报