Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am using the Eclipse code editor to work on my remote files.
It appears that Eclipse is set to dos/Windows file format. I do not know how to find the file format set in Eclipse, but I want it to be set to Unix file format.

How can I set the file format to Unix in Eclipse?

Similar Question to set file format in VIM

like image 484
Rachel Avatar asked Mar 03 '10 20:03

Rachel


2 Answers

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

like image 151
Chad Birch Avatar answered Nov 15 '22 01:11

Chad Birch


Take look of following image for changing format:

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

enter image description here

like image 17
Sumit Singh Avatar answered Nov 15 '22 00:11

Sumit Singh