bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.56k stars 92 forks source link

PHP open and close brackets always seem to be misaligned when with HTML #2878

Closed karlprolifik closed 3 weeks ago

karlprolifik commented 1 month ago

Here's a simple visual of the problem;

<div>
  <?php
  if ($foo == $bar) {
    if ($foo == $bar) {
      if ($foo == $bar) {
        if ($foo == $bar) {
          if ($foo == $bar) {
  ?>
            <div>

            </div>
  <?php
          }
        }
      }
    }
  }
  ?>
</div>

Surely the "?>" on line 8 and the "<?php" on line 12 should be further indented?

MacOS Ventura 13.6.1 Running VSCode 1.88.1

Active Extensions are;

Screenshot 2024-05-05 at 14 18 26

bmewburn commented 3 weeks ago

duplicate of #1000