I have just spent the last hour or so fiddling with all options attempting to remove unwanted indentation that indents further on each save/format. Is there a way to disable this from happening?

I am working on a WordPress project with Laravel code style.

The issue is occurring inside the customFieldsHtml code.

After 3 formats, the code looks like this:

    Hi Tom,

    Thank you for letting us know about this.

    I'm going to try to replicate, may I ask for the complete content of the file?

    Thank you

      Hi no problem. This isn't my file, but it gives you the same effect. When the html isn't formatted and all written inline, your formatter works fine, but when its like the above, it affects it.

      <?php
      
      namespace App\Providers;
      
      use Illuminate\Support\ServiceProvider;
      
      class TestProvider extends ServiceProvider
      {
          public function test()
          {
              ?>
              <script>
                  const testingHtml = `
                      <table>
                          <tbody>
                              <tr>
                                  <td>Test</td>
                                  <td>Test</td>
                              </tr>
                          </tbody>
                      </table>
                  `;
              </script>
              <?php
          }
      }

        Hi Tom,

        Perfect, thank you. Easy to replicate with this. We will fix it ASAP.

        Thanks!

          Thanks again. We've fixed it and we'll be releasing pre-release during today.

          Write a Reply...