I'm using PhpStorm 2021.2.1 on my Windows machine. The thing I've noticed today is when I refactor my class code it realign the class properties and methods parameters like so:
public function __construct(
public Notification $notification,
public Post $post,
public ?Title $title = null)
{
//
}
How can I tell PhpStorm to not align class properties?
Settings (Ctrl + Alt + S) > Editor > PHP > Tab Wrapping and Braces > Function declaration parameters > Untick Align when multiline.
You can also search for Align when multiline when using the quick search in the settings to find it quicker.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With