Eclipse Editor: How to change file format from Dos to Unix

JavaEclipseUnixEditorDos2unix

Java Problem Overview


I am using eclipse editor to work on my remote files it appears that eclipse editor is set to dos file format, I do not know how to find fileformat set in eclipse editor, but I want it to be set on unix file format.

How can I set file format options to unix file format in eclipse ?

Similar Question to set file format in VIM

Thanks.

Java Solutions


Solution 1 - Java

I don't have Eclipse installed to check, but from some searching it looks like there are two things to do.

To change the default format for new files:

Window -> Preferences -> General -> Workspace -> New text file line delimiter

To convert the file that's open:

File -> Convert Line Delimiters To -> Unix

Solution 2 - Java

Take look of following image for changing format:

Window -> Preferences -> General -> Workspace -> New text file line delimiter

enter image description here

Solution 3 - Java

This can even be done more specific, just for a single project:

> Change Project > Properties > Resource : New Tex File Delimiter

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRachelView Question on Stackoverflow
Solution 1 - JavaChad BirchView Answer on Stackoverflow
Solution 2 - JavaSumit SinghView Answer on Stackoverflow
Solution 3 - JavasomeProgrammerGuyView Answer on Stackoverflow