gpt4 book ai didi

c++ - 格式化函数参数

转载 作者:行者123 更新时间:2023-11-28 08:11:37 25 4
gpt4 key购买 nike

您是否知道有任何工具或程序能够美化函数输入参数,使变量左对齐,如下例所示?

我现在正在看 A-Style。你知道它是否可以为我完成这项工作吗?

我想改变这段代码

      void foo(
int a
,my_long_parameter b
,anotgher_type c
);

给这些。

      void foo(
int a
,my_long_parameter b
,anotgher_type c
);

最佳答案

查看 astyle .它可以满足您的需求(甚至更多),但您必须设置参数。

关于c++ - 格式化函数参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8940310/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com