diff --git a/gopls/doc/vscode.md b/gopls/doc/vscode.md index 0359dae7b6..83526aafde 100644 --- a/gopls/doc/vscode.md +++ b/gopls/doc/vscode.md @@ -48,3 +48,11 @@ You can disable features through the `"go.languageServerExperimentalFeatures"` s [VSCode-Go]: https://github.com/microsoft/vscode-go + +# VSCode Remote Development with gopls + +You can also make use of `gopls` with the [VSCode Remote Development](https://code.visualstudio.com/docs/remote/remote-overview) extensions to enable full-featured Go development on a lightweight client machine, while connected to a more powerful server machine. + +First, install the Remote Development extension of your choice, such as the [Remote - SSH](https://code.visualstudio.com/docs/remote/ssh) extension. Once you open a remote session in a new window, open the Extensions pane (Ctrl+Shift+X) and you will see several different sections listed. In the "Local - Installed" section, navigate to the Go extension and click "Install in SSH: hostname". + +Once you have reloaded VSCode, you will be prompted to install `gopls` and other Go-related tools. After one more reload, you should be ready to develop remotely with VSCode and the Go extension.