blob: fedb5895282208afc041f2ce276fd1c7ab8ebbb0 [file] [log] [blame]
format the code according to the go standard
Usage:
gopls [flags] format [format-flags] <filerange>
The arguments supplied may be simple file names, or ranges within files.
Example: reformat this file:
$ gopls format -w internal/lsp/cmd/check.go
format-flags:
-d,-diff
display diffs instead of edited file content
-l,-list
display names of edited files
-preserve
with -write, make copies of original files
-w,-write
write edited content to source files