您是否知道任何能夠美化函數輸入參數的工具或程序,使變量左對齊,如下例所示: 我現在正在看看A-Style。你知道它是否可以爲我做這項工作嗎? 我想從這個代碼 void foo(
int a
,my_long_parameter b
,anotgher_type c
);
這些之一更改。 void foo(
int a
是將函數的開括號到下一行的通常做法。 如何在課堂上使用的方法的astyle(代碼美化)應用此? 例如: // this is an initial C++ code
class Class
{
public:
static int foo(bool x) {
if (x) {
return 42;
} else {
return