本页内容

选择行尾格式

要在 Windows 行尾(CRLF)和 Unix 行尾(LF)之间切换,请在“Edit ”模式下,从编辑器工具栏 (3) 中选择相应的行尾样式。

编辑模式工具栏

若要隐藏此字段,请转至“Preferences ” > “Text Editor ” > “Display ”,并取消勾选“Display file line ending ”。

设置默认样式

要设置所有项目默认使用的行尾格式,请转至Preferences >Text Editor >Behavior ,并在“Default line endings ”中选择相应的行尾样式。

“文本编辑器”首选项中“行为”选项卡里的默认文件后缀

若要为某个项目设置行尾格式,请转至Projects >Project Settings >Editor

项目的编辑器设置

另请参阅 《如何:编辑代码》、《指定编辑器设置》和《编辑代码》。

Copyright © The Qt Company Ltd. and other contributors. 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.