Add note on unused imports and formatting
This commit is contained in:
Родитель
0e11603a95
Коммит
0faec7e5a8
|
@ -25,7 +25,7 @@ Read the [Changelog](https://github.com/Microsoft/vscode-go/blob/master/CHANGELO
|
|||
### Code Editing
|
||||
|
||||
- Code Snippets for quick coding
|
||||
- Format code on file save as well as format manually (using `goreturns` or `goimports` or `gofmt`)
|
||||
- Format code on file save as well as format manually (using `goreturns` or `goimports` which also remove unused imports or `gofmt`)
|
||||
- Symbol Rename (using `gorename`. Note: For Undo after rename to work in Windows you need to have `diff` tool in your path)
|
||||
- Add Imports to current file (using `gopkgs`)
|
||||
- Add/Remove Tags on struct fields (using `gomodifytags`)
|
||||
|
|
|
@ -657,7 +657,7 @@
|
|||
"go.formatTool": {
|
||||
"type": "string",
|
||||
"default": "goreturns",
|
||||
"description": "Pick 'gofmt', 'goimports', 'goreturns' or 'goformat' to run on format. Not applicable when using the language server.",
|
||||
"description": "Pick 'gofmt', 'goimports', 'goreturns' or 'goformat' to run on format. Not applicable when using the language server. Choosing 'goimport' or 'goreturns' will add missing imports and remove unused imports.",
|
||||
"scope": "resource",
|
||||
"enum": [
|
||||
"gofmt",
|
||||
|
|
Загрузка…
Ссылка в новой задаче