Hi,
with the latest pre-release version the indentation "inside the function" is kept correctly, but the formatter removes empty rows and remove the "first indentation" in the comment block.

This is the original sample function

This is the function after the format process

I saw that pre-release version include a special comment
// @php-format off
but there are a lot of comment block, like the above example, in our project and add this comment everywhere it's a nightmare.

Thank you in advance for your help!

    Hi Marco,

    Thank you for testing the pre-release. We will fix that.

    About the special comments. This comes from the suggestion on github https://github.com/DEVSENSE/phptools-docs/issues/319

    I think the intended use are few rare cases where it's just better to keep the format as it is, but mostly the formatter should handle whatever is thrown at it.

      The fix will be available in the next pre-release.

      Thank you!

      Write a Reply...