Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.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
在Netbeans中对齐/缩进函数参数_Netbeans_Indentation_Code Formatting - Fatal编程技术网

在Netbeans中对齐/缩进函数参数

在Netbeans中对齐/缩进函数参数,netbeans,indentation,code-formatting,Netbeans,Indentation,Code Formatting,在Netbeans PHP中,我希望下一个参数与前一行第一个参数的开头对齐,但自动缩进仅提供以下格式: my_function( $a, $b, ... ); 我想要的是: my_function( $a, $b, ... ); 可以将Netbeans设置为这样做吗?到目前为止,我所看到的是能够设置固定数量的空格,以便在参数继续时缩进。我没有用Netbeans编写PHP,但对于Java,您可以执行选项>编辑器

在Netbeans PHP中,我希望下一个参数与前一行第一个参数的开头对齐,但自动缩进仅提供以下格式:

my_function( $a,
        $b,
        ... );
我想要的是:

my_function( $a,
             $b,
             ... );

可以将Netbeans设置为这样做吗?到目前为止,我所看到的是能够设置固定数量的空格,以便在参数继续时缩进。

我没有用Netbeans编写PHP,但对于Java,您可以执行
选项>编辑器>格式化>Java>对齐>检查方法参数
以在执行
源代码>格式化时获得想要的效果。我想您可以对PHP编辑器执行类似的操作。

在NetBeans 8.2中,可以在选项>编辑器>格式: 语言:php- 类别:包装- 方法参数:始终- (方法调用参数:始终)