If you have chocolatey.org package manager, you can easily install Go like so:
choco install golang
- Install it but don't open it yet.
- Go to: https://code.visualstudio.com
- Select Windows and start downloading
- Run the installer
- Grab and run the installer. Go to: https://gitforwindows.org
- Select VSCode as the default editor
- Enable all the checkboxes
- Select: "Use Git from the Windows Command Prompt"
- Encodings: Select: "Checkout as is..." option.
- Go to https://golang.org/dl
- Select Windows and download
- Start the installer
-
Open VS Code; from the extensions tab at the left, search for "go" and install it
-
Close VS Code completely and open it up again
-
Go to View menu; select Command Palette
- Or just press
ctrl+shift+p
- Type:
go install
- Select "Go: Install/Update Tools"
- Check all the checkboxes
- Or just press
-
So, to use git bash, follow these steps:
-
Setup VS Code to use git-bash by default:
- Open VS Code
- Go to Command Palette
- Type:
terminal
- Select: "Terminal: Select Default Shell"
- And, Select: "Git Bash"
- Type:
-
NOTE: Normally, you can find your files under
c:\
, however, when you're using git bash, you'll find them under/c/
directory. It's actually the very same directory, it's just a shortcut.
-