Skip to content

Commit 9a45107

Browse files
update go user settings
1 parent e75597e commit 9a45107

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

go.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,19 @@ Install "Go for Visual Studio Code" (ms-vscode.go)
5959

6060
Set tools bin path in VS Code
6161

62-
Code, Preferences, Settings
62+
Code, Preferences, Settings, User settings
6363
... Open settings.json
64-
Set go.toolsGoPath to Tools/bin path
65-
66-
![settings](res/gousersettings.png)
64+
Set go.toolsGoPath to Tools path
65+
66+
```javascript
67+
{
68+
"git.ignoreMissingGitWarning": true,
69+
"workbench.startupEditor": "newUntitledFile",
70+
"go.toolsGopath": "/Users/bryan/Tools"
71+
}
72+
```
6773

68-
74+
note: I used to point directly to Tools/bin but a recent vscode go plugin wants me to point to Tools and bin is implied.
6975

7076
### Debug
7177

res/gousersettings.png

-62.9 KB
Binary file not shown.

scripts/installgotools.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ export GOPATH=${TOOLS_ROOT}
99
# https://github.com/Microsoft/vscode-go/wiki/Go-tools-that-the-Go-extension-depends-on
1010

1111
echo "Installing gocode (auto completion) ..."
12-
go get -u github.com/nsf/gocode
12+
go get -u github.com/mdempsky/gocode
13+
# it points to a fork for modules (vgo) support
14+
# github.com/stamblerre/gocode
1315

1416
echo "Installing gooutline (symbol search current file) ..."
1517
go get -u github.com/ramya-rao-a/go-outline

0 commit comments

Comments
 (0)