Skip to content

Commit 4d53cdc

Browse files
committed
docs: update fill struct feature documentation
The latest version no longer offers the "Go: Fill struct" command. Suggest the code action. Fixes #3104 Change-Id: Ida95173f0f88322b32ac319d3f8aa1d3d7cf1b5c Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/553075 Commit-Queue: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Suzy Mueller <[email protected]>
1 parent 445a800 commit 4d53cdc

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

docs/features.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,11 @@ Easily generate unit tests for your project by running one of the [`Go: Generate
248248

249249
### Fill struct literals
250250

251-
Use the [`Go: Fill struct`](commands.md#fill-struct) command to automatically fill a struct literal with its default values.
251+
Use the [Code Action](https://code.visualstudio.com/docs/editor/refactoring#_code-actions-quick-fixes-and-refactorings) to automatically fill a struct literal with its default values. The Go language server provides this capability as a `refactor.rewrite` type code action.
252252

253-
<div style="text-align: center;"><img src="images/fillstructliterals.gif" alt="Fill struct literals" style="width: 75%"> </div>
253+
<div style="text-align: center;"><img src="images/fillstruct.png" alt="Fill struct literals"> </div>
254+
255+
**Note**: The old "Go: Fill struct" command was removed in v0.40.0 in favor of the Code Action.
254256

255257
## Diagnostics
256258

docs/images/fillstruct.png

17.7 KB
Loading

docs/images/fillstructliterals.gif

-190 KB
Binary file not shown.

0 commit comments

Comments
 (0)