Sublime Forum

Is there a plugin like this?

#1

Is there a plugin where it scans your code and auto-aligns everything? For example:

Old code:

<?php
if (something) {
echo "blah blah blah";
} else if {
echo "blah blah";
?>

New code:

<?php
if (something) {
        echo "blah blah blah";
    } else if {
        echo "blah blah";
?>

Something like that?

0 Likes

#2

Perhaps sublime-phpfmt or sublimetext-codeformatter?

0 Likes

#3

Or just select the code and Edit>Line>Reindent?

0 Likes