当前位置:网站首页>一文搞定vscode编写go程序
一文搞定vscode编写go程序
2022-07-05 15:07:00 【dnice】
最初开始写go程序时使用的vscode,长时间不用快忘记了,现在抽时间整理出来,简洁明了,供大家参考。
1.安装Go插件
2.安装code runner
安装完成后,会发现,代码编辑页面右上角多了个运行按钮,编辑完成代码后直接点击运行按钮即可。不需要在终端输入go run命令了,提高编程效率。如下图:
3.debug
鼠标悬停Run -> 点击Start Debugging,如下图:
新项目debug,报错如下:
项目必须要先初始化 go mod,打开terminal go mod init,如下图:
设置断点,debug,一切正常,可以正常调试程序了。如下图:
以上步骤完成后,就可以编写go程序和debug了。
常用快捷补全关键字
其余的快捷补全,大家可以自己试一下,输入英文字母看是否有提示即可。
边栏推荐
- SQL Server learning notes
- Ctfshow web entry information collection
- lv_font_conv离线转换
- 可转债打新在哪里操作开户是更安全可靠的呢
- Talk about your understanding of microservices (PHP interview theory question)
- Detailed explanation of QT creator breakpoint debugger
- OSI seven layer model
- Can gbase 8A view the location of SQL statement history?
- Redis distributed lock principle and its implementation with PHP (2)
- Leetcode: Shortest Word Distance II
猜你喜欢
随机推荐
12 MySQL interview questions that you must chew through to enter Alibaba
Leetcode: Shortest Word Distance II
MySQL5.7的JSON基本操作
mapper. Comments in XML files
Surpass palm! Peking University Master proposed diverse to comprehensively refresh the NLP reasoning ranking
OSI 七层模型
Can gbase 8A view the location of SQL statement history?
JS knowledge points-01
OSI seven layer model
30岁汇源,要换新主人了
easyOCR 字符識別
超越PaLM!北大硕士提出DiVeRSe,全面刷新NLP推理排行榜
当代人的水焦虑:好水究竟在哪里?
社区团购撤城“后遗症”
Huawei Hubble incarnation hard technology IPO harvester
Ten billion massage machine blue ocean, difficult to be a giant
【jvm】运算指令
Anti shake and throttling
Coding devsecops helps financial enterprises run out of digital acceleration
Install PHP extension spoole