[HowTo?] What setting should be used to prevent removing spaces before arithmetic signs

已回答

Editor automatically from the line
NumPins - 1 - Pins_Distance * a - i
makes this line
NumPins-1-Pins_Distance*a-i

This is inconvenient in the "Pins_Distance*a" part since a "sticks" to Pins_Distance.

Is there any solution?

评论操作 固定链接

It is intended in gofmt formatter (Go default formatter). Please see https://groups.google.com/g/golang-nuts/c/PbJ1uTbhFDY for details.

0

请先登录再写评论。