English 中文(简体)
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:

<?php
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?

问题回答

暂无回答




相关问题
VS 10 mangles html comments?

Using the latest VS 10 we created html markup, then commented it with html comments. The file on disk is not mangled, but when it renders, it renders the html comment tags, then removes some of the ...

Comments & OpenSource software [closed]

This may sound like a foolish question or an observation, but i have seen that most of the times when one tries to look at the opensource code, there are no comments or just one or two lines at the ...

Including commented Class declaration in implementation file

Everyone knows the advantages of a more readable code. So in order to make my code more readable what i do normally is include the commented class declaration in the implementation file of that class....

pair programming with comments [closed]

Over the years, I ve discovered that green-programmers tend to read the comments rather than the code to debug issues. Does having one person document the other person s code (and vice-versa) with ...

Commenting JavaScript functions á la Python Docstrings

It is valid JavaScript to write something like this: function example(x) { "Here is a short doc what I do."; // code of the function } The string actually does nothing. Is there any reason, ...

热门标签