Level 55
@sos99 thank you for this. It works great! So simple and most importantly for me, it is automatic! Great little tool.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
How codding with PSR-2
install phpfmt with Pakage manager
add this to phpfmt user settings:
{
"enable_auto_align": false,
"format_on_save": false,
"indent_with_space": 4,
"passes":
[
],
"excludes": [ "OrderUseClauses" ],
"psr1": true,
"psr1_naming": true,
"psr2": true,
"space_around_exclamation_mark": true,
"version": 3,
"visibility_order": true
}
to use it just press F11
Please or to participate in this conversation.