Main Content

Newline style

Description

Specify the newline character in the generated code.

Category: Code Generation > Code Style

Settings

Default: Default

Default

Generates the newline character based on the operating system that the code is generated on.

LF (Line Feed)

Generates the Line Feed character as the newline character in the generated code. "\n" is inserted as the newline character.

CR+LF (Carriage Return + Line Feed)

Generates the Carriage Return + Line Feed character as the newline character in the generated code. "\r\n" is inserted as the newline character.

Command-Line Information

Parameter: NewlineStyle
Type: character vector
Value: 'Default'|'LF'|'CRLF'
Default: 'Default'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics