函数参数的PHP Break Line字符

时间:2016-01-13 09:33:03

标签: coda code-folding

我有这段代码:

public function registerNew ($first_name, $last_name, $email, $phone, $password, $bank_name, $bank_account_number, $bank_account_name, $gender, $birthday, $address, $area, $signup_date, $activated, $first_login, $token, $referred_by, $referral_id, $default_type) {

//some code here

}

我希望这样做:

public function registerNew ($first_name, $last_name, $email, $phone, $password,
                             $bank_name, $bank_account_number, $bank_account_name,
                             $gender, $birthday, $address, $area, $signup_date,
                             $activated, $first_login, $token, $referred_by,
                             $referral_id, $default_type) {

//some code here

}

但是,因为我只是在行的末尾点击“输入”按钮,然后每次我尝试折叠此功能时,我的代码编辑器会折叠所有内容,直到只有类名出现如下:

class User {...}

我期待这样的输出:

class User {

public function registerNew ($first_name, $last_name, $email, $phone, $password,
                                     $bank_name, $bank_account_number, $bank_account_name,
                                     $gender, $birthday, $address, $area, $signup_date,
                                     $activated, $first_login, $token, $referred_by,
                                     $referral_id, $default_type) {...}
}

我是否必须放置一些字符来打破线条而不是只需按下输入按钮?或者这只是我的代码编辑器的问题?

谢谢

0 个答案:

没有答案