Go version
go 1.24
Output of go env
in your module/workspace:
nope
What did you do?
https://go.dev/play/p/D9o-IHUsIy5
package main
// This is a list:
// - item
// - this item has sub-items
// - sub-item
// - another item
func main() {
}
Click Format.
What did you see happen?
Result: sub-item is no longer doubly-indented.
What did you expect to see?
Leave my comments alone. I wrote them how I wanted them.
I don't know of a workaround.
Comment From: seankhliao
Duplicate of #55990 See also #54894
Comment From: ALTree
(And https://github.com/golang/go/issues/55990 mentions a workaround: putting a non-itemized indented line at the beginning of the list)