This plugin helps you to apply to a common code style in a team of Eclipse JDT and NetBeans IDE users. The original formatting engine of Eclipse is embedded and allows you to format the sourcecode the same way as your Eclipse co-workers do. You only have to provide a Eclipse formatter configuration file.
Plugin is in still experimental state. Known issue: When the Eclipse formatter is used all the breakpoints in the file are lost.
Features:
- Global configuration and project specific configuration
- Supports profiles (since 1.6)
- On save action (Disabled by default)
- Shows the used formatter as notification (Enabled by default)
- Supports format of selected text (since 1.7)
Updates in 1.7:
Updates in 1.6.1:
- [Bugfix 34]: Fixed: NPE while saving options when no profile is set
Updates in 1.6:
- [Task 30]: Update to Eclipse formatter jars from Eclipse Kepler 4.3
- [Feature 31]: First profile in file is always used - support selection of profile
- [Feature 21]: Project specific options: Show link to global options
Updates in 1.5:
- [Bugfix 18]: Fixed: Formatting with eclipse formatter introduces empty document in undo manager
- [Task 27]: Provide a signed package for the PPUC
Updates in 1.4.1:
- [Bugfix 25]: Fixed: Configured formatter.xml isn't used
Updates in 1.4:
Note:
Please note that this plugin only provides support for formatting. Eclipse users may miss the application of save-actions like "adding @Override annotations" or "member sort order". Such AST-based transformations are not provided by this plugin. The plugin also won't format source code with guarded sections - like the Java sources generated by the NetBeans GUI builder.
Licensing
Provide defects, request for enhancements and feedback at https://github.com/markiewb/eclipsecodeformatter_for_netbeans/issues
Compatible to NetBeans 7.3+ and JDK6+.