开发者

Zend Studio code formatter problem with comments

开发者 https://www.devze.com 2022-12-26 23:18 出处:网络
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

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

精彩评论

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