CLion
 
Get CLion
You are viewing the documentation for an earlier version of CLion.

Code generation

Last modified: 08 September 2023

CLion provides multiple ways to generate common code constructs and recurring elements, which helps you increase productivity. These can be either file templates used when creating a new file, custom or predefined live templates that are applied differently based on the context, various wrappers, or automatic pairing of characters.

The Generate menu helps you quickly create standard code constructs in your code. Depending on the current context, the caret position, or selected code, CLion gives you a list of constructs to be generated.

the Generate menu