繁体   English   中英

uncrustify:如何设置最大行长

[英]uncrustify: How do I set the maximum line length

运行 uncrustify 后,我不希望任何行超过 80 个字符。 如何在 uncrustify 配置文件中设置一行的最大长度?

将这样的部分添加到您的配置文件中。 它不保证获得低于指定宽度的所有行。

#
# Line Splitting options
#

code_width            80            
# Unsigned Number
# Try to limit code width to N number of columns

ls_for_split_full     True  
# { False, True }
# Whether to fully split long 'for' statements at semi-colons.

ls_func_split_full    True
# { False, True }
# Whether to fully split long function protos/calls at commas.

ls_code_width         True
# { False, True }
# Whether to split lines as close to code_width as possible and ignore some groupings.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM