Change Line Feeds from CRLF to LF in Eclipse

11.3k Views Asked by At

I recently noticed that the line-feeds of files in my project are CRLF but I want them as LF.(I get the following message from GIT GUI :

"UTF-8 Unicode text, with CRLF line terminators"

How can I solve this problem?

2

There are 2 best solutions below

1
On

Just try below process

File--> Convert Line Delimiters to --> Unix

0
On

Try this :

Window->Preferences->General->Workspace: New Text file line delimiter

enter image description here