Run gofmt after the builtin formatter

Ensure that your code is always formatted with gofmt.

Tip Screenshot

Make sure your code is always formatted with gofmt.

How to use:

To use this feature, check the On code reformat option under Settings/Preferences | Editor | Code Style | Go | Other.

Now you can use the default shortcut, ⌘⌥L (macOS) / Ctrl+Alt+L (Windows/Linux), to trigger the builtin formatter.

Pro tip: You can also search for Run gofmt in the IDE Settings/Preferences, and activate the option as described above.


Related Resources

Create getters and setters for struct fields
Create getters and setters for struct fields
Generate the support code to access fields indirectly, via getters and setters
Improve Code Readability and Navigation
Improve Code Readability and Navigation
Discover how to manage code visibility with code folding in Go
Create a function in another package
Create a function in another package
Type a non-existing function name and generate its implementation in a package of your choice