You need to install the vscode-go extension after changing the go
binary to point to the GAE version.
- Symlink the
goapp
binary
> cd $PATH_TO_GAE_SDK/go_appengine/goroot/bin
> ln -s goapp go
- Install
vscode-go
extension - Ensure
gocode
is on your$PATH
, normally located in$GOPATH/bin
- Close
gocode
> gocode close
- Set the
gocode
lib-path
property
> gocode set "lib-path" "$PATH_TO_GAE_SDK/go_appengine/goroot/pkg/darwin_amd64_appengine"
Now if you run VSCode, it will start the gocode
daemon and should autocomplete APIs from the GAE SDK:
After completing the above steps: