当前位置:网站首页>一文搞定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了。
常用快捷补全关键字




其余的快捷补全,大家可以自己试一下,输入英文字母看是否有提示即可。
边栏推荐
- GPS original coordinates to Baidu map coordinates (pure C code)
- Usage and usage instructions of JDBC connection pool
- Bugku's eyes are not real
- Au - delà du PARM! La maîtrise de l'Université de Pékin propose diverse pour actualiser complètement le classement du raisonnement du NLP
- Bugku's Eval
- Array sorting num ranking merge in ascending order
- Install PHP extension spoole
- 你童年的快乐,都是被它承包了
- NBA赛事直播超清画质背后:阿里云视频云「窄带高清2.0」技术深度解读
- Ctfshow web entry information collection
猜你喜欢

Live broadcast preview | how to implement Devops with automatic tools (welfare at the end of the article)

Ctfshow web entry explosion
![[12 classic written questions of array and advanced pointer] these questions meet all your illusions about array and pointer, come on!](/img/d2/c0a19c85b2011ecd07c9944d996c4d.png)
[12 classic written questions of array and advanced pointer] these questions meet all your illusions about array and pointer, come on!

Creation and optimization of MySQL index

30岁汇源,要换新主人了
![[JVM] operation instruction](/img/f5/85580495474ef58eafbb421338e93f.png)
[JVM] operation instruction
![P6183 [USACO10MAR] The Rock Game S](/img/f4/d8c8763c27385d759d117b515fbf0f.png)
P6183 [USACO10MAR] The Rock Game S

Crud de MySQL

Bugku's eyes are not real

Fr exercise topic --- comprehensive question
随机推荐
DVWA range clearance tutorial
Misc Basic test method and knowledge points of CTF
Common MySQL interview questions (1) (written MySQL interview questions)
Ten billion massage machine blue ocean, difficult to be a giant
超越PaLM!北大碩士提出DiVeRSe,全面刷新NLP推理排行榜
OSI seven layer model
What are the domestic formal futures company platforms in 2022? How about founder metaphase? Is it safe and reliable?
Redis distributed lock principle and its implementation with PHP (2)
Bugku alert
SQL Server learning notes
Ctfshow web entry explosion
MySQL5.7的JSON基本操作
计算中间件 Apache Linkis参数解读
I include of spring and Autumn
NBA赛事直播超清画质背后:阿里云视频云「窄带高清2.0」技术深度解读
Does maxcompute have SQL that can query the current storage capacity (KB) of the table?
当代人的水焦虑:好水究竟在哪里?
1330:【例8.3】最少步数
Good article inventory
easyOCR 字符識別