• Edited

Note: using comments to represent blank lines because the forum's styling/formatter trims trailing blank lines.

Before Formatting:

<?php

function foo()
{
    return "bar";
}
//
//
//
//

After Formatting:

<?php

function foo()
{
    return "bar";
}
//
//

Expected Formatting:

<?php

function foo()
{
    return "bar";
}
//

Minimal Config:

"php.format.rules.maxBlankLines": 1,

VSCode Version: 1.95.3
PHP Tools Version: 1.53.16379

    Hello Jay,

    Thank you for your post.

    It appears you are correct and this is the bug, we will fix this one ASAP.

    Thanks!

      Hello Jay,

      The latest pre-release fixes this issue.

      Thanks again for letting us know

        Write a Reply...