Download is available
- with Eclipse Neon 4.6 engine at http://plugins.netbeans.org/plugin/70382
- with Eclipse Mars 4.5 engine at http://plugins.netbeans.org/plugin/50877
- with Eclipse Luna 4.4 engine at http://plugins.netbeans.org/plugin/64061
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 an Eclipse formatter configuration file.
Known issue: When the Eclipse formatter is used the line-breakpoints at the formatted lines are lost. Class/Method/Field breakpoints will be preserved.
- Global configuration and project specific configuration
- On save action (Disabled by default)
- Shows the used formatter as notification (Enabled by default)
- Supports profiles (since 1.6)
- Supports format of selected text (since 1.7)
- Preserve breakpoints (experimental) (since 1.8)
- Code templates for @formatter:on/off (since 1.9)
- Supports Workspace Mechanic configuration file (since 1.10)
- Support configuration from .settings/org.eclipse.jdt.core.prefs (absolute and relative paths) (since 1.10)
- On save action: Introduced option for formatting only the changed lines (since 1.10)
- Support configuration of linefeed (since 1.10)
- Support configuration of source level (since 1.10)
- Support for macro invocation (since 1.12)
- [Bugfix 93]: Fixed: java.lang.NoClassDefFoundError after another version of the plugin has been uninstalled
- [Feature 84]: Provide support for Eclipse Neon 4.6 1a
- [Bugfix 88]: Fixed: Keyboard shortcut does not format non java files
- [Feature 86]: Allow action to be invoked via macro
- [Feature 78]: Support formatting using Eclipse 4.5.2 Mars.2
- [Bugfix 74]: Fixed: Minor UI issues in options dialog
- [Bugfix 80]: Fixed: Prevent "URI is not hierarchical" exception
- [Bugfix 77]: Fixed: Exception, when using third-party Java code formatter in configuation file
- [Feature 61]: Support Workspace Mechanic configuration file (*.epf)
- [Feature 67]: Support configuration via /.settings/org.eclipse.jdt.core.prefs or absolute path to org.eclipse.jdt.core.prefs
- [Feature 68]: Reduce download size by 77% by repacking jars with pack200
- [Feature 70]: On save action: Introduced option for formatting only the changed lines
- [Feature 71]: Support configuration of linefeed
- [Feature 23]: Support configuration of source level
- [Feature 37]: Fallback to NB formatter, if file isn't a java file
- [Bugfix 73]: Selection in undocked windows is not respected, when called via keyboard
- [Task 63]: Update to Eclipse formatter jars from Eclipse 4.5.1 (Mars.1)
- [Feature 65]: Code templates for @formatter:on/off (More details...)
- [Task 66]: Update requirements to NetBeans 8.0+
- [Bugfix 57]: Fixed: java.lang.IllegalArgumentException: bad position and run parts in EDT
- [Bugfix 4]: Fixed: option panel isn't found by searching for "eclipse"
- [Bugfix 56]: Fixed: Format on Save - Changed files remain modified after saving them in Java Editor
- [Bugfix 55]: Fixed: "URI is not hierarchical" error message on calling format - add logging for this error
- [Feature 47]: Preserve Class/Method/Field breakpoints (experimental, can be disabled in options)
- [Bugfix 53]: Fixed: Do not remove linebreakpoint, if line is not included in selection
- [Bugfix 52]: Fixed: Cannot assign shortcut for "Format with Eclipse Formatter" action
- [Task 46]: Update to use eclipse formatter libs from eclipse 4.4
- [Task 48]: Support only NetBeans 7.4 and above
- [Task 49]: Add donation button
- [Task 50]: Add link to github/homepage
- [Bugfix 41]: Fixed: NPE when configuration file not found
- [Feature 38]: Format selected part of document (PR by saadmufti)
- [Bugfix 34]: Fixed: NPE while saving options when no profile is set
- [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
- [Bugfix 18]: Fixed: Formatting with eclipse formatter introduces empty document in undo manager
- [Task 27]: Provide a signed package for the PPUC
- [Bugfix 25]: Fixed: Configured formatter.xml isn't used
- major refactorings and fixes - see milestone 1.4@github
- This plugin is licensed under Eclipse Public License, Version 1.0
- This plugin bundles several 3rd-party libraries to provide its functionality.
- Eclipse Public License, Version 1.0
- org.eclipse.core.contenttype_3.5.100.v20160418-1621.jar org.eclipse.core.jobs_3.8.0.v20160509-0411.jar org.eclipse.core.resources_3.11.0.v20160503-1608.jar org.eclipse.core.runtime_3.12.0.v20160606-1342.jar org.eclipse.equinox.common_3.8.0.v20160509-1230.jar org.eclipse.equinox.preferences_3.6.1.v20160815-1406.jar org.eclipse.jdt.core_3.12.1.v20160829-0950.jar org.eclipse.text_3.6.0.v20160503-1849.jar
- Apache License, Version 2.0
- commons-beanutils-1.8.3.jar commons-digester3-3.2.jar commons-logging-1.1.3.jar
- Originally forked from https://blogs.oracle.com/geertjan/entry/eclipse_formatter_for_netbeans_ide with allowance of Geertjan Wielenga.
- Based on http://epochcoder.blogspot.com/2013/08/import-eclipse-formatter-into-netbeans.html from Willie Scholtz.
Provide defects, request for enhancements and feedback at https://github.com/markiewb/eclipsecodeformatter_for_netbeans/issues
Compatible to NetBeans 8.0.2+ and JDK7+.