Change EOL on multiple files in one go

后端 未结 7 1437
再見小時候
再見小時候 2020-11-29 19:34

Is there any way in Notepad++ (or even with another tool) to change the line ending automatically on multiple files in one go?

i.e. convert a mix of

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-29 19:49

    Found this solution via this discussion:

    You can also set the default EOL in notepad++ via "Settings" -> "Preferences" -> "New Document/Default Directory" then select "Unix/OSX" under the Format box.

    Note: One can always use an out-of-band option using the command line:

    unix2dos *.cmd
    dos2unix *.sh
    

提交回复
热议问题