开发者

How to enable comment folding in Eclipse PDT?

How to enable code folding of comments for PHP scripts in Eclipse?

I have a lot of code of which the first 30 lines of every script is a GNU lic开发者_开发问答ense... very annoying.

This seems to be somehow broken in Helios but worked by default, out of the box in Ganymede.


I correct myself the PHPDoc option folds all multi-line comments.

Note: Once enabled you have to close and reopen your file to have all the comment blocks folded.

E.g.

/**
 * This is a function that does something
 *
 * @param $a Some variable
 */
function doesSomething($a) {
}

ends up like this

 * This is a function that does something
function doesSomething($a) {
}


Under Preferences > PHP > Editor > Code Folding

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜