How does Goland align identifiers when writing structures?

how do Goland align identifiers when writing structures? Something like this: does
have shortcut keys? Or can I just press the space manually?

clipboard.png

Jan.08,2022

gofmt or goimport will be automatically formatted
if you can configure this with Goland or idea, it will be automatically formatted when saved


goland: ctrl + shift + L, MAC


:
File Watchers
clipboard.png

:
clipboard.png
OK, save, when you save the file, it will automatically run gofmt to format your code, including the identifier you said.

Menu