首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >uncrustify:如何设置最大行长度

uncrustify:如何设置最大行长度
EN

Stack Overflow用户
提问于 2018-09-22 05:01:09
回答 1查看 893关注 0票数 2

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

EN

回答 1

Stack Overflow用户

发布于 2018-11-06 03:54:17

在您的配置文件中添加一个类似这样的部分。它不能保证获取指定宽度以下的所有行。

代码语言:javascript
复制
#
# 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.
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52451024

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档