格式化的时候想这样:
$heredoc = <<< HEREDOC_ID
some $contents
HEREDOC_ID;
但是现在格式化以后是这样:
$heredoc
= <<< HEREDOC_ID
some $contents
HEREDOC_ID;
请问在哪里设置呢? Editor->Code&style->PHP 找了很久都没有找到呢!
1
zhangwei1996 OP where setting "heredoc format style" in phpstorm 9.0.2
I hope like this : ``` $heredoc = <<< HEREDOC_ID some $contents HEREDOC_ID; ``` but now , After formatting like this : ``` $heredoc = <<< HEREDOC_ID some $contents HEREDOC_ID; ``` Where can I set it? `Editor->Code&style->PHP` for a long time did not find |
2
zhangwei1996 OP |
3
linauror 2015-11-09 16:11:44 +08:00
File-Settings
搜索框直接输入 heredoc 回车 Colors & Fonts - PHP 点进去就是 |
4
zhangwei1996 OP @linauror 搜,只有 color 设置
|
5
cxbig 2015-11-09 16:26:44 +08:00
HereDoc 从第二行开始必须顶格写。 reformat 是对的。
|