Maximum line width
Maximum line width for wrapping generated code
Model Configuration Pane: Code Generation / Code Style
Description
Specify the maximum line width for wrapping generated code.
Settings
80 (default) | value from 50-1000
Default: 80
Specify an integer value that indicates the maximum number of columns in a single line of generated code. Possible values range from 50–1000
columns.
If the comments exceed the maximum line width specified, the tail comments are generated on a new line with right justification. Other types of comments are not wrapped:
#define
tail commentsSimulink block comments
Stateflow object comments
Banner comments
Examples
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Programmatic Use
Parameter: MaxLineWidth |
Type: integer |
Value: integer from 50–1000 |
Default: 80 |
Version History
Introduced in R2019a