Вопрос

I've recently been using Eclipse with PDT for PHP development.

When writing classes I tend to use the following style for class constants and properties:

class Foo extends Bar
{
    const
        CNST_1 = 1,
        CNST_2 = 2,
        CNST_3 = 3;

    private
        $fred = array(),
        $barney = array ();

    public
        $wilma = 123,
        $betty = 456;
}

Unfortunately code folding makes something of a mess of this if I have fold code on load turned on. It ends up looking like this:

class Foo extends Bar
{
        CNST_3 = 3;

        $barney = array ();

        $betty = 456;
}

The code unfold control is there, but clicking it only reveals one extra row of my source file each time until it get to the const, public, private etc part. Then clicking the folding box only hides the first item after the keyword.

Has anyone else hit this issue, and if so what did they do about it?

Нет правильного решения

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top