This technote explains an unexpected behavior of Eclipse. The "Convert Line Delimiters to" action does not work on certain kind of files. The file remains unchanged. No error message is generated.
The Convert Line Delimiters to action works only on text files.
Depending on the situation, this might be a defect, in which the IDE is not sure about the content type of the file. Review Eclipse Bug 321306 for more details.
Diagnosing The Problem
Change the file extension to *.txt and verify that converting works as expected.
Resolving The Problem
- Click Window > Preferences > General > Content Types.
- Expand the Text node from the tree on the right panel in the Content Types section.
- Click the Add button and enter the original extension pattern.
- Click the OK button.
Now the conversion works.
Note: If you think that the IDE should recognize certain extensions by default, you can report a bug.
16 June 2018