1. Run the go run command directly in the terminal to compile
As shown in the figure:
2. Install the code Runner plug-in
#After the installation is complete, restart vscode. Right-click and see an additional run code. The compilation result is the same as before, and the result is displayed in the output column.
Related article tutorial sharing:vscode tutorial
The above is the detailed content of How to compile and run vscode in go language. For more information, please follow other related articles on the PHP Chinese website!