Citizen
Citizen

Reputation: 12957

Laravel auto formatting for Netbeans

I'm using Laravel on Netbeans but any time that I use auto format (alt shift f) it messes up my code formatting. I know that I can edit each setting individually in Netbeans but that could 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 one I could find is this:

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

But it doesnt work. It messes up my blade templates and my routes file gets formatted differently.

Thanks!

Upvotes: 7

Views: 1391

Answers (1)

Viktor
Viktor

Reputation: 827

For Laravel on PHPStorm I'm using php-cs-fixer plugin. For me, It's perfect toool for formatting.

Here you can find this plugin for Netbeans.

Also, you can install php-cs-fixer on your machine and run it from console. Git repository of php-cs-fixer.

Upvotes: 2

Related Questions