Over a million developers have joined DZone.

Jindent 4.0.10: Tighter Integration with your IDE

· Java Zone

Discover how AppDynamics steps in to upgrade your performance game and prevent your enterprise from these top 10 Java performance problems, brought to you in partnership with AppDynamics.

Last week saw the release of the 4.0.10 version of Jindent, the commercial source code formatter. More than purely a bugfix release, 4.0.10 provides new and very snug integration of Jindent with both IntelliJ and NetBeans IDE. Here we hit some of the high points. And, if you're a user of Jindent, feel free to share what you think of it!

Jindent offers over 300 different switches and options to define your individual coding style preferences. Amongst these are tabular code alignment/justification, intelligent line wrapping, and header/footer templates. Support for a number of external tools are also provided, from versioning systems to text editors.

Looking at the complete list of changes in the 4.0.10 release, it is clear that this release is primarily focused at IDE plugin improvements:

Jindent installer:

Bugfix:
  • Directory file chooser for IDEs and Java tools is now able to shows hidden directories.


Java formatter:

Bugfix:
  • Fixed Java grammar file which causes a parsing error for field declarations and annotations inside of anonymous classes.
  • Added line wrapping support for expressions after colons in for-each loops.


Jindent NetBeans plugin:

Released new Jindent plugins for NetBeans 6.0
  • Automatic installation through native installer.
  • Formatting menu item in editor's context menu.
  • Formatting menu item in file navigation's context menu.
  • Formatting of single files, directories, packages and whole projects.
  • Editor Undo for all formatting options.
  • Shows formatting progress bar.
  • Build in Jindent Customizer and preview for easy configuration of plugin.
  • Java Help support in plugin.
  • Show messages, warnings and errors in NetBeans console.
  • Click on messages and the according file opens up in editor window. Cursor is located on the source code line which is causing the message.


Jindent IntelliJ IDEA plugin:

Released new Jindent plugins for IntelliJ IDEA 7.0
  • Automatic installation through native installer.
  • Formatting menu item in editor's context menu.
  • Formatting menu item in file navigation's context menu.
  • Formatting of single files, directories, packages and whole projects.
  • Editor Undo for all formatting options.
  • Shows formatting progress bar.
  • Build in Jindent Customizer and preview for easy configuration of plugin.
  • Java Help support in plugin.
  • Show messages, warnings and errors in IntelliJ console.
  • Click on messages and the according file opens up in editor window. Cursor is located on the source code line which is causing the message.

Let's see how easy it is to get started and to see the difference that this new release makes. When you start the installer, you can specify with which IDE you'd like Jindent to be integrated:

At the end of the installer, you get all the info about the latest release, which is quite handy:

Then you start up your IDE. In the case of IntelliJ, you can immediately see in the Plugin area on the right side that Jindent has been installed:

And then... menu items are available on contextual menus, in the explorer views as well as in the editors. In each case, Jindent's distinctive J symbol helps you to see that the item in question is provided by the Jindent plugin:

And now you can format your file using Jindent. Use the Jindent-specific customizer to set your source code formatting options:

Have you used Jindent? How does it compare to the support provided natively by the IDE that you use?

The Java Zone is brought to you in partnership with AppDynamics. AppDynamics helps you gain the fundamentals behind application performance, and implement best practices so you can proactively analyze and act on performance problems as they arise, and more specifically with your Java applications. Start a Free Trial.

Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}