Open sjackman opened 1 month ago
"go.formatTool": "custom",
"go.alternateTools": {
"customFormatter": "golines" <--- or exact path like "~/go/bin/golines".
}
}
Nice! Thank you for the quick and helpful response, @hyangah! 😁
Is your feature request related to a problem? Please describe. I'd like to wrap long lines.
Describe the solution you'd like I'd like to wrap long lines using
golines
when I save a file.Describe alternatives you've considered
pre-commit
to rungolines
(see https://github.com/segmentio/golines/blob/master/.pre-commit-hooks.yaml)emeraldwalk.runonsave
to rungolines
(see https://github.com/golang/vscode-go/issues/847#issuecomment-777566491)Additional context On 2021-04-09 in https://github.com/golang/vscode-go/issues/847#issuecomment-816992225, @stamblerre wrote…
but when I set this configuration option
go.formatTool": "golines
, I get the error message:Value is not accepted. Valid values: "default", "gofmt", "goimports", "goformat", "gofumpt", "custom".