Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

NetBeans Plugin for Changing Line Endings

DZone's Guide to

NetBeans Plugin for Changing Line Endings

· Java Zone
Free Resource

Just released, a free O’Reilly book on Reactive Microsystems: The Evolution of Microservices at Scale. Brought to you in partnership with Lightbend.

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

Strategies and techniques for building scalable and resilient microservices to refactor a monolithic application step-by-step, a free O'Reilly book. Brought to you in partnership with Lightbend.

Topics:

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}