Bill Robertson wrote: > On Jun 18, 7:23 pm, Peter Becker <[email protected]> wrote: > >> I feel similar. NetBeans is quite nice in many regards, but generally >> lacking in terms of code hygiene. Between NetBeans not even >> auto-formatting generated code and Eclipse fixing dozens of things as >> "Save Actions" a lot is still to be done. >> > > The little macro feature in Netbeans won't work for that? > Good point -- while I was aware of the macro feature I didn't really think of using it.
It would help in that I can set up a macro to call the formatter and the organize imports, then save. It's still not what Eclipse offers, e.g. you can't format just changed lines and I don't think NetBeans covers all of the more advanced things such as adding finals. But I should try such a setup, I don't really know why I didn't come up with it myself. But even if it works: I think NetBeans should emphasize code hygiene more. Being able to write a macro for it is better than having to write a plugin, but it still is a conceptual burden and it won't be trivial to spread across a project. With the Eclipse approach the Save Actions can be configured as part of the project's configuration, then any developer on the project will automatically use them (assuming you check in your Eclipse config, but in an Eclipse shop that makes sense). Of course the problem is that you can't default to anything because whatever you chose as default >95% of the audience will disagree :-) Peter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaposse?hl=en -~----------~----~----~----~------~----~------~--~---
