# Generate code

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/go/llms.txt).

> **TL;DR**
> `Code | Generate` or [Generate… shortcut](https://www.jetbrains.com/help/go/llms-keymap-index.md "Generate")
>
>
>
> Configure: [Settings… shortcut](https://www.jetbrains.com/help/go/llms-keymap-index.md "ShowSettings") `Settings | Editor | File and Code Templates`

Use [file templates](https://www.jetbrains.com/help/go/using-file-and-code-templates.html.md) to create files, [live templates](https://www.jetbrains.com/help/go/using-live-templates.html.md) to insert code snippets, and the [Generate action](https://www.jetbrains.com/help/go/using-the-generate-action.html.md) to create constructors, methods, and tests.

Go to `Code | Generate` [Generate… shortcut](https://www.jetbrains.com/help/go/llms-keymap-index.md "Generate") to open the popup menu with available constructs that you can generate.

Use these features to generate or wrap code and complete paired characters:

* [Using the Generate action](https://www.jetbrains.com/help/go/using-the-generate-action.html.md)

* [Using Live templates](https://www.jetbrains.com/help/go/using-live-templates.html.md)

* [Using the Surround With action](https://www.jetbrains.com/help/go/surrounding-blocks-of-code-with-language-constructs.html.md)

* [Completing paired characters](https://www.jetbrains.com/help/go/completing-punctuation.html.md)

