This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 148121 [details] How NetBeans IDE 8.0 formats Auto formatting isn't formatting code in a nice readable, comprehensive way. I would like to have it indent properly from within a method calling, class initialization, array. The program messes everything and it becomes really hard to read. Note that I think this should only happen when you jump to a newline for arguments. If you put the arguments inline now indentation should happen to keep the code as needed. Here's an example. When I would like to have this: // How I think code should look $menu[0]->menu[1] = new \flat\tight\classes\adminMenuItem( 'footer', 'Configuraciones del footer', '', '', new \flat\tight\classes\mdaRequestObj( '\flat\boots\modules\configuration', 'read', array( 'title' => 'Footer', 'description' => 'Configuraciones del footer', 'type' => 'configuration', 'buttonSave' => new flat\tight\classes\mdaParamsButton( 'Salvar', '\flat\boots\modules\configuration', 'update' ), 'buttonCancel' => new flat\tight\classes\mdaParamsButton('Cancelar'), 'fields' => array( 'Teléfono', 'Dirección' ) ) ) ); I get this: // How NetBeans IDE 8.0 formats $menu[0]->menu[1] = new \flat\tight\classes\adminMenuItem( 'footer', 'Configuraciones del footer', '', '', new \flat\tight\classes\mdaRequestObj( '\flat\boots\modules\configuration', 'read', array( 'title' => 'Footer', 'description' => 'Configuraciones del footer', 'type' => 'configuration', 'buttonSave' => new flat\tight\classes\mdaParamsButton( 'Salvar', '\flat\boots\modules\configuration', 'update' ), 'buttonCancel' => new flat\tight\classes\mdaParamsButton('Cancelar'), 'fields' => array( 'Teléfono', 'Dirección') ) ) );
Created attachment 148122 [details] How it should look
Editor issue, must be evaluated, definitely not P2. It's a common array formatting issue. You say "I would like to have". It's great, but we are not able to satisfy request of all users. We can just add some general options. You can try to play with tools - options - editor - formatting - php settings, maybe it will help you.
Thanks for your comment. I have tried doing some experimentation with tools - options - editor - formatting but I get nothing that improves readability...
Reproducible. Thanks for reporting.