Indent style
Style for placement of braces in the generated code
Description
App Configuration Pane: Code Appearance
Configuration Objects: coder.EmbeddedCodeConfig
Style for placement of braces in the generated code.
Settings
K&R
This value is the default value.
For blocks within a function, an opening brace is on the same line as its control statement. For example:
void addone(const double x[6], double z[6]) { int i0; for (i0 = 0; i0 < 6; i0++) { z[i0] = x[i0] + 1.0; } }
Allman
For blocks within a function, an opening brace is on its own line at the same indentation level as its control statement. For example:
void addone(const double x[6], double z[6]) { int i0; for (i0 = 0; i0 < 6; i0++) { z[i0] = x[i0] + 1.0; } }
Programmatic Use
Property: IndentStyle |
Values: 'K&R' |
'Allman' |
Default: 'K&R' |
Version History
Introduced in R2015a