Over a million developers have joined DZone.

NetBeans Plugin for Changing Line Endings

· Java Zone

Check out this 8-step guide to see how you can increase your productivity by skipping slow application redeploys and by implementing application profiling, as you code! Brought to you in partnership with ZeroTurnaround.

A number of NetBeans users, especially PHP developers, have been asking for the ability to change line separator types between Windows, Unix, and MacOS formats. See Issue 72515 for a brief history of this request.

Well, you'll be happy to know that Jan Lahoda has created a plugin for NetBeans IDE 6.9 and 7.0 that shows and lets you change the line endings of the file you are working on. You can download the plugin from the NetBeans plugin portal. To install the downloaded plugin:

  1. Launch NetBeans.
  2. Go to Tools > Plugins.
  3. Open the Downloaded tab.
  4. Click Add Plugins. A file system explorer opens.
  5. Browse for the downloaded  plugin. Select it and click Open. The file system explorer closes and the plugin appears in your plugins window.
  6. Make sure the plugin is selected and click Install.

After you install the plugin, open a file to edit. On the right side of the global status bar, at the bottom of the IDE, you can see the line ending style of the file. To change the line endings of the file, click the line ending and select a new style of line ending.

Line ending on global status bar

The Java Zone is brought to you in partnership with ZeroTurnaround. Check out this 8-step guide to see how you can increase your productivity by skipping slow application redeploys and by implementing application profiling, as you code!

Topics:

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

{{ parent.tldr }}

{{ parent.urlSource.name }}