开发者

Zend Studio code formatter problem with comments

i have Zend Studio 7.x, mostly use it for Zend Framework PHP and OOP JavaScript. When i run formatter on *.php file, often space is added after block of inline comments

Before formatter run:

<?php
function someAction() {

 // some note
 // second line
 if ($foo) {
 }

}
?>

After:

<?ph开发者_运维知识库p
function someAction() {

 // some note
 // second line

 if ($foo) {
 }

}
?>

If i run formatter one more time next empty line after // is added, Code is formatted in right way but blank lines are frustrating. Something similar happens in *.js files.

Any idea?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜