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

后端 未结 3 2020
陌清茗
陌清茗 2020-12-12 23:42

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, bu

3条回答
  •  旧时难觅i
    2020-12-13 00:13

    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

提交回复
热议问题