Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 2.37 KB

ide_setup.md

File metadata and controls

58 lines (38 loc) · 2.37 KB

IDE Setup 2024-03-29

As far as I know, the best IDE (as of now) for Go is GoLand. It's a paid IDE, but students and teachers can get a free license.

I'm a big fan of Visual Studio Code, I will use it as much as I can (knowing that it's not the best choice for Go development).

Here, I will describe how to set up VS Code for Go development; as a start, read this tutorial and also this one.

To learn more about your options, read this wiki.

Table of Contents

Install SDK

To help you set up quickly, you can download and install a binary release from here.

If you're using Windows and using Chocolatey, you can install Go by running the following command:

choco install golang

Install Extensions

To work with Go in Visual Studio Code, you will need to install some extensions.

I've chosen the following ones:

More customizations

You'll find more customizations I've made to my VS Code setup here.

Code formatting

You should perform the following steps to format your code automatically (on save).

Add the following settings to your settings.json:

"[go]": {
    "editor.defaultFormatter": "golang.go",
    "editor.formatOnSave": true
}