vscode-php-intellisense icon indicating copy to clipboard operation
vscode-php-intellisense copied to clipboard

PHP + HTML indentation pattern

Open SnowRunescape opened this issue 1 year ago • 0 comments

Currently, the indentation with PHP + HTML leaves the code in this way.

<?php
$teste = "dd";
if ($teste == "dd") {
?>
    <div>
        dsadas
    </div>
<?php
}
?>

What do we need to do to leave it like this:

<?php
$teste = "dd";
if ($teste == "dd") {
    ?>
    <div>
        dsadas
    </div>
    <?php
}
?>

Once inside an IF or FOR, we add 4 spaces for indentation. It doesn't make sense for it to stay in the same sequence as the IF, or even worse, at the beginning of the line without any indentation.

SnowRunescape avatar Dec 16 '23 10:12 SnowRunescape