Over a million developers have joined DZone.

NetBeans Plugin for Changing Line Endings

· Java Zone

Learn more about how the Java language, tools and frameworks have been the foundation of countless enterprise systems, brought to you in partnership with Salesforce.

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

Discover how the Force.com Web Services Connector (WSC) is a code-generation tool and runtime library for use with Force.com Web services, brought to you in partnership with Salesforce.

Topics:

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}