- Install Visual Studio Code.
- Click Extensions in the sidebar.
- Install this extension:
- Go for VS Code The official Go extension for Visual Studio Code
- When prompted:
go get -v golang.org/x/tools/gopls
- Select
Install all
for all packages
Be sure to set up Visual Studio Code for your environment.
Tip On MacOS, install code
in $PATH to enable Launching Visual Studio Code from the command line. Open the Command Palette (Cmd+Shift+P) and type 'shell command'.
Click the GitHub icon in the sidebar for GitHub integration and follow the prompts.
- Fork or clone the https://github.com/cosmos/sdk-tutorials/ repository. Internal Tendermint users have different permissions, if you're not sure, fork the repo.
Master your terminal to be happy.
On macOS, install the iTerm2 OSS terminal emulator as a replacement for the default Terminal app. Installing iTerm2 as a replacement for Terminal provides an updated version of the Bash shell that supports useful features like programmable completion.
The Z shell, also known as zsh, is a UNIX shell that is built on top of the macOS default Bourne shell.
-
If you want to set your default shell to zsh, install and set up zsh as the default shell.
-
Install these plugins:
-
Edit your
~/.zshrc
file to add the plugins to load on startup:plugins=( git zsh-autosuggestions zsh-syntax-highlighting )
-
Log out and log back in to the terminal to use your new default zsh shell.
This installation method removes existing Go installations, installs Go in /usr/local/go/bin/go
, and sets the environment variables.
- Go to https://golang.org/dl.
- Download the binary release that is suitable for your system.
- Follow the installation instructions.
Note: We recommend not using brew to install Go.