Fill Paragraph for Go Comments

Ensure that comments have the width you like.

To configure the width of the comment paragraph, navigate to Settings/Preferences | Editor | Code Style | Go | Other | Fill paragraph width. After that, invoke the Show Context Action via ⌥⏎ (macOS) / Alt+Enter (Windows/Linux), and choose the Fill paragraph action.


Related Resources

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.
Empower your `Printf`-like functions with coding assistance
Empower your `Printf`-like functions with coding assistance
Provide hints and highlights for message formats in custom `Printf`-like functions.