Show and change line endings - plugin detail

Shows the line endings of the currently edited file and allows to change them.

NetBeans Plugin - Show and change line endings
Plugin owner: jlahoda
Website:
Added: 2011-03-03
License: CDDL-GPL-2-CP
Category: Editing
Downloaded: 16,549 times
Rating:
 4.63, by 37 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.03 MB   Last Update: 2014-03-23

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

Uploading version for NetBeans 8.0.

Verifications for NetBeans versions

8.0 verification PASSED See verification details
Download plugin   Download size: 0.03 MB   Last Update: 2013-10-18

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

Updated to support NetBeans 7.4.

Verifications for NetBeans versions

7.4 verification PASSED See verification details
Download plugin   Download size: 0.03 MB   Last Update: 2013-03-26

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

Fixed: http://netbeans.org/bugzilla/show_bug.cgi?id=215258 Sources available at: https://bitbucket.org/jlahoda/crlf/

Verifications for NetBeans versions

7.3 verification PASSED See verification details
Download plugin   Download size: 0.02 MB   Last Update: 2011-03-24

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

The change line-endings popup should be contained inside the NetBeans frame, the line-endings display names are more user friendly.

Verifications for NetBeans versions

7.2 verification PASSED See verification details
Download plugin   Download size: 0.02 MB   Last Update: 2011-03-24

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

The change line-endings popup should be contained inside the NetBeans frame, the line-endings display names are more user friendly.

Verifications for NetBeans versions

7.1 verification PASSED See verification details
Download plugin   Download size: 0.02 MB   Last Update: 2011-03-24

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

The change line-endings popup should be contained inside the NetBeans frame, the line-endings display names are more user friendly.

Verifications for NetBeans versions

7.0 verification PASSED See verification details
Download plugin   Download size: 0.02 MB   Last Update: 2011-03-24

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

The change line-endings popup should be contained inside the NetBeans frame, the line-endings display names are more user friendly.

Verifications for NetBeans versions

6.9 verification PASSED See verification details


Introduction

Shows the line endings of the currently edited file and allows to change them. The line endings of the currently edited file are show in the right side of the global status bar. The line endings can be changed by clicking at the line endings status.

[ You have to be logged in to be able to comment. ]

User Comments

  

please update to 8.0

very important
Posted by nysander on Mar 20, 2014
  

update for 7.4 please

highly required
Posted by dront78 on Oct 18, 2013
  

Can this plugin be fixed for 7.4?

Seems that there are weird issues when using this with 7.4RC1. The file gets changed and saves, but now it's permanently modified. Even on re-open.
Posted by gena01 on Sep 27, 2013
  

Well done!

No idea why it's not in Netbeans as a standard feature, but it saved a lots of my time.

It would be nice to be able to undo the changes.
Posted by mikaelo on Apr 19, 2013
  

Great plugin, thank you!

Now, could you please make it NetBeans 7.3 compliant? :)
Posted by foxik on Mar 26, 2013
  

Thanks so much for this plugin

You filled a nagging hole in my favorite IDE.
Posted by iletras on Mar 22, 2013
  

Doesn't change the file on Mac

I'm running NB 7.2 on Mac OS X Lion, 10.7.5, and the plugin indicates files with DOS endings OK but nothing happens when I click on Unix(LF). It works OK on Win NB 7.1.1.
Posted by ptbrunet on Dec 10, 2012
  

TY!

Totaly agree with anacreo. It must be by default!
Posted by AlexGolovko on Nov 20, 2012
  

TY!

This should definitely be part of the native functionality.

Well done.
Posted by anacreo on Jun 14, 2012
  

Must have

It should be part of Netbeans itself!
Posted by junaidpv on Feb 21, 2012
  

Labels (titles)

Fantastic plugin! It should be netbeans default.

I do not agree with vovtz about "Mac OS 9" label. I have Mac OS X 10 (Lion) and Microsoft Excel. When I save sheet to CSV you get CR line endings. Only when you save sheet to Windows CSV (on your Mac) you get CRLF. So the label should be "Mac (CR)".
Posted by e-mike on Dec 11, 2011
  

What about auto-generated code from GUI designer (.form files)

I love this plugin, but recently discovered that the NB GUI designer auto generates form files with CRLF and our existing git repository has LF line endings.

Anyone have any ideas how to handle this?

PS: We recently migrated our source from cvs to git and since have been battling eol issues. The plugin is great, but now auto-gen code appears to always create CRLF from Windows NB.
Posted by cavalleydude on Aug 30, 2011
  

Undo button

Thank you for this plugin - it's very useful.


Just one issue: after changing the line endings, it is not possible to revert the change with the back button. But it is not necessary to implement…

Posted by voda on Mar 29, 2011
  

Fixed in 1.2

My complaints for v1.1 has been fixed in v1.2, so now this plugin gets five stars from me! =)
Posted by CheeseSucker on Mar 24, 2011
  

Excellent plugin!

Just what netbeans was missing from the start... No more calling 'fromdos' in order to convert the windows lineendings to unix :)
Absolutely perfect!
(the aforementioned bug on the popup is confirmed)
(comment editing is possible via 'My Comments' after logging in)
Posted by kingsquare on Mar 24, 2011
  

At last!

Great plugin, this should have been part of netbeans from the beginning. Thank you for solving this!

I second the comments about going off-screen when maximized...

Thanks again.
Posted by dio5 on Mar 23, 2011
  

Re: Source code

The source code is in the Pelmel project on kenai:
http://kenai.com/projects/pelmel

Currently in the 6.9 repository:
http://kenai.com/projects/pelmel/sources/nb69/show
(module "crlf")
Posted by jlahoda on Mar 17, 2011
  

Souce code

Jan,
this plugin is published in some repository or is a private project? Could I have access to this?

Thanks you and congratulations for your hard work.
Posted by hmichel on Mar 17, 2011
  

long-awaited plugin

Finally ...
Solve one of the few missing feature in Netbeans !

Thanks
Posted by ericc on Mar 16, 2011
  

Friendlier labels (example reformatted)

Repeating the example for clarity:

Unix (LF)

Windows (CR LF)

Mac OS 9 and below (CR).
Posted by vovtz on Mar 14, 2011
  

Friendlier labels

CheeseSucker wrote:

> The comment system ate my line endings =(

Aaargh! Same here! (It says 'HTML tags OK', but maybe it should read 'Manual insertion of HTML tags necessary' :) An option to edit existing 'posts' would be welcome ...)
Posted by vovtz on Mar 14, 2011
  

Friendlier labels

I agree with kAlvaro that friendlier labels would be welcome, but I would like to suggest to also include the current (technical) info (perhaps between braces?). And because since 2003 all Macs use Mac OS X, which is a Unix-based OS, the friendly label for CR should read 'Mac OS 9 and before' (or something similar). Example:

- Unix (LF);
- Windows (CR LF);
- Mac OS 9 and below (CR).
Posted by vovtz on Mar 14, 2011
  

At last! :)

I confirm CheeseSucker's report about the off-screen menu when maximized window.
Also, it'd be nice to have friendlier labels, such as:
- Win
- Unix
- Mac
Posted by kAlvaro on Mar 11, 2011
  

Gah!

The comment system ate my line endings =(



Edit: Fixed my comment thanks to KinqSquare's tip ;-)

Posted by CheeseSucker on Mar 11, 2011
  

Useful plugin

There is a bug in the user interface. When you click to select a new line ending style, the popup list goes outside the window (and the screen when the window is maximized). Expected behaviour is for the list to stay inside the window, moving it up and left if necessary.



Also, the list stays visible if you don't click somewhere inside netbeans. If you open the list and change focus to e.g. firefox, this happens:



Still a good plugin though =)

Posted by CheeseSucker on Mar 11, 2011
  

awesome plugin

will it detect corrupted files with mixed up line endings? (changing the line endings changes it for the entire file, right? not only for future modifications?)
Posted by mbien on Mar 10, 2011
  

Re: Some documentation?

Thanks for comment Jeff. I have extended the Plugin Owner's Notes. Basically, the line endings (Unix/Win/"Mac") are shown in the IDE's global status bar, and can be changed by clicking at the current status.
Posted by jlahoda on Mar 10, 2011
  

Some documentation?

Jan,
It looks good but I had to guess that I needed to use the Show Non-Printable Characters feature in order to see the line endings. I am still not sure how to change them. A few lines on how to use the plugin would be a great help, IMO.
Posted by jeff_rubinoff on Mar 10, 2011
  

Nice Plugin

perfect plugin . It is very useful , in case you work in team projects and each person uses different OS .
Thank you
Posted by iotriado on Mar 10, 2011
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo