Select line ending style

To switch between Windows line endings (CRLF) and Unix line endings (LF), select the ending style on the editor toolbar (3) in the Edit mode.

{Edit mode toolbar}

To hide this field, go to Preferences > Text Editor > Display, and clear Display file line ending.

Set default style

To set the line endings to use for all projects by default, go to Preferences > Text Editor > Behavior and select the ending style in Default line endings.

{Default file ending preferences}

To set the line endings to use for a project, go to Projects > Project Settings > Editor.

{Editor settings for a project}

See also How To: Edit Code, Specify editor settings, and Edit Mode.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.