Complete Current Statement

Quickly add required trailing commas for any composite literals or place the caret at the next typing position.

GoLand can complete statements and add required trailing commas for any composite literals (like struct, slice, etc.), and even place caret in a position where you can just start typing the next statement.

How to use:

To invoke this action, press ⌘+⇧+↩ on Mac or Ctrl+Shift+Enter on Windows /Linux.