EOL conversion in notepad ++

后端 未结 4 978
我在风中等你
我在风中等你 2020-11-30 23:39

For some reason, when I open files from a unix server on my windows machine, they occasionally have Macintosh EOL conversion, and when I edit/save them again they don\'t wor

4条回答
  •  一向
    一向 (楼主)
    2020-12-01 00:26

    I open files "directly" from WinSCP which opens the files in Notepad++ I had a php files on my linux server which always opened in Mac format no matter what I did :-(

    If I downloaded the file and then opened it from local (windows) it was open as Dos/Windows....hmmm

    The solution was to EOL-convert the local file to "UNIX/OSX Format", save it and then upload it.

    Now when I open the file directly from the server it's open as "Dos/Windows" :-)

提交回复
热议问题