Skip to content

Instantly share code, notes, and snippets.

@pavanpodila
Last active July 20, 2017 05:40
Show Gist options
  • Save pavanpodila/8bd0946e767597a9265464426109c609 to your computer and use it in GitHub Desktop.
Save pavanpodila/8bd0946e767597a9265464426109c609 to your computer and use it in GitHub Desktop.
Configure VSCode for Google App Engine Go SDK

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:

@pavanpodila
Copy link
Author

After completing the above steps:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment