I think it would be nice to select the style of if/else blocks, it's a feature I miss coming from phpStorm.
Now:
if ($a === 1) {
// ...
} else if ($a === 2) {
// ...
} else {
// ...
}
Add new line after each if/else block:
if ($a === 1) {
// ...
}
else if ($a === 2) {
// ...
}
else {
// ...
}
Being able to keep simple if/else blocks on one line would be a nice to have feature:
if ($a === 1) { /* ... */ }
else if ($a === 2) { /* ... */ }
else { /* ... */ }
Blocks can also be aligned ( too much? 😃 ):
if ($a === 1) { /* ... */ }
else if ($a === 2) { /* ... */ }
else { /* ... */ }
I think it would be nice to select the style of if/else blocks, it's a feature I miss coming from phpStorm.
Now:
Add new line after each if/else block:
Being able to keep simple if/else blocks on one line would be a nice to have feature:
Blocks can also be aligned ( too much? 😃 ):