Laravel auto formatting for Netbeans

I use Laravel on Netbeans, but anytime when I use the automatic format (alt shift f), it will ruin my code formatting. I know that I can edit each setting separately in Netbeans, but it can take hours and never be complete. Is there an easy way for Netbeans to adapt to my files, or is there a settings file somewhere that I can import into Netbeans?

The only thing I could find was:

http://forumsarchive.laravel.io/viewtopic.php?id=13032

But that does not work. This will ruin my click patterns and my route file is formatted differently.

Thanks!

+6
source share
1 answer

For Laravel on PHPStorm, I use the php-cs-fixer plugin. For me it is perfect for formatting.

Here you can find this plugin for Netbeans.

Alternatively, you can install php-cs-fixer on your computer and run it from the console. Git repository php-cs-fixer .

+1
source

Source: https://habr.com/ru/post/972977/


All Articles