You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-16Lines changed: 37 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,30 @@
1
-
# Go for Visual Studio Code
2
-
3
-
[](https://gitter.im/Microsoft/vscode-go?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[](https://travis-ci.org/Microsoft/vscode-go)
4
-
5
-
This extension adds rich language support for the [Go language](https://golang.org/) to VS Code.
6
-
7
-
Read the [Changelog](https://github.com/Microsoft/vscode-go/blob/master/CHANGELOG.md) to know what has changed over the last few versions of this extension.
1
+
# Go Nightly for VS Code
2
+
3
+
> ### **ATTENTION**
4
+
>**Go Nightly for VS Code** is the insider version of
5
+
[VS Code Go extension](https://github.com/microsoft/vscode-go)
6
+
for early feedback and testing. This extension works best with
> Go team members who has signed the Microsoft CLA will send a syncing PR upstream to
26
+
> https://github.com/microsoft/vscode-go every two weeks.
27
+
> -[Here](https://github.com/microsoft/vscode-go/compare/master...golang:master) is the full list of local modifications.
8
28
9
29
## Table of Contents
10
30
@@ -36,16 +56,16 @@ Read the [Changelog](https://github.com/Microsoft/vscode-go/blob/master/CHANGELO
36
56
37
57
### IntelliSense
38
58
39
-
- Auto Completion of symbols as you type (using `gocode`)
40
-
- Signature Help for functions as you type (using `gogetdoc` or `godef`+`go doc`)
41
-
- Quick Info on the symbol as you hover over it (using `gogetdoc` or `godef`+`go doc`)
59
+
- Auto Completion of symbols as you type (using language server or `gocode`)
60
+
- Signature Help for functions as you type (using language server or `gogetdoc` or `godef`+`go doc`)
61
+
- Quick Info on the symbol as you hover over it (using language server or `gogetdoc` or `godef`+`go doc`)
42
62
43
63
### Code Navigation
44
64
45
-
- Go to or Peek Definition of symbols (using `gogetdoc` or `godef`+`go doc`)
46
-
- Find References of symbols and Implementations of interfaces (using `guru`)
65
+
- Go to or Peek Definition of symbols (using language server or `gogetdoc` or `godef`+`go doc`)
66
+
- Find References of symbols and Implementations of interfaces (using language server or `guru`)
47
67
- Go to symbol in file or see the file outline (using `go-outline`)
48
-
- Go to symbol in workspace (using `go-symbols`)
68
+
- Go to symbol in workspace (using language server or `go-symbols`)
49
69
- Toggle between a Go program and the corresponding test file.
50
70
51
71
### Code Editing
@@ -93,7 +113,7 @@ You will see `Analysis Tools Missing` in the bottom right, clicking this will of
93
113
94
114
**Note 2**: The `Format on save` feature has a timeout of 750ms after which the formatting is aborted. You can change this timeout using the setting `editor.formatOnSaveTimeout`. This feature gets disabled when you have enabled the `Auto Save` feature in Visual Studio Code.
95
115
96
-
**Note 3**: This extension uses `gocode` to provide completion lists as you type. If you have disabled the `go.buildOnSave` setting, then you may not get fresh results from not-yet-built dependencies. Therefore, ensure you have built your dependencies manually in such cases.
116
+
**Note 3**: Unless `go.useLanguageServer` is set to `true`, this extension uses `gocode` to provide completion lists as you type. If you have disabled the `go.buildOnSave` setting, then you may not get fresh results from not-yet-built dependencies. Therefore, ensure you have built your dependencies manually in such cases.
97
117
98
118
### Customizing the Go extension features
99
119
@@ -117,7 +137,7 @@ Previously, we added support to use `go-langserver`, the [language server from S
117
137
118
138
Ideally, you would see prompts to use/install/update the language server.
119
139
Follow the prompts and the language server should get set up correctly.
120
-
If you want to manually install/update the language server,
140
+
If you want to manually install/update the language server,
121
141
- Ensure you have set `go.useLanguageServer` to `true` in your settings
122
142
- Use the `Go: Install/Update Tools` command, select `gopls` from the list and press Ok.
123
143
@@ -126,7 +146,8 @@ If you want to manually install/update the language server,
126
146
127
147
Below are the settings you can use to control the use of the language server. You need to reload the VS Code window for any changes in these settings to take effect.
128
148
129
-
- Set `go.useLanguageServer` to `true` to enable the use of language server
149
+
- Set `go.useLanguageServer` to `true` to enable the use of language server.
150
+
- When using `gopls`, see the [recommended settings](https://github.com/golang/tools/blob/master/gopls/doc/vscode.md).
130
151
- Some of the features from the language server can be disabled if needed using the setting `go.languageServerExperimentalFeatures`. Below are the features you can thus control. By default, all are set to `true` i.e are enabled.
0 commit comments