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
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
Take look of following image for changing format:
Window -> Preferences -> General -> Workspace -> New text file line delimiter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With