On this page:
Complete statements enables you to create syntactically correct code constructs. This command inserts necessary syntax elements (parentheses, braces, semicolons etc.) and gets you in position where you can start typing the next statement.
To automatically complete a statement, follow these steps:
The command is helpful in numerous scenarios, including auto-closing parentheses, adding semicolons, and more.
Complete Statement works with the following language constructs:
- Type and type members: class, namespace, enum and enum classes.
Below, you can find a number of examples of applying the complete statement command in different contexts.