Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse c-formatter |在函数头中保留arg type和arg name之间的空格_C_Eclipse_Eclipse Cdt_Formatter - Fatal编程技术网

Eclipse c-formatter |在函数头中保留arg type和arg name之间的空格

Eclipse c-formatter |在函数头中保留arg type和arg name之间的空格,c,eclipse,eclipse-cdt,formatter,C,Eclipse,Eclipse Cdt,Formatter,我想将eclipse格式化程序配置为在函数声明中保留参数类型和参数名称之间的空白。有人知道这种配置是否可行吗 我想要什么 int testfunc ( int a, // testomato bool_t b, // testomato sometype_t blubb ); // testomato int testfunc ( int a, // testomato

我想将eclipse格式化程序配置为在函数声明中保留参数类型和参数名称之间的空白。有人知道这种配置是否可行吗

我想要什么

int testfunc ( int        a,       // testomato
               bool_t     b,       // testomato
               sometype_t blubb ); // testomato
int testfunc ( int a,       // testomato
               bool_t b,       // testomato
               sometype_t blubb ); // testomato
我得到的

int testfunc ( int        a,       // testomato
               bool_t     b,       // testomato
               sometype_t blubb ); // testomato
int testfunc ( int a,       // testomato
               bool_t b,       // testomato
               sometype_t blubb ); // testomato

一些问题

  • 对于EclipseCDT版本来说,像在EclipseJDT中一样“在列中对齐字段”的选项也是非常有趣的
  • eclipse插件columns4eclipse可能是一个解决方案,但它不适用于实际的eclipse版本

我找到了一个相关的帖子。嗨,你找到解决办法了吗?OCDFormat插件似乎不适用于最新版本的EclipseNo我没有解决方案,抱歉