记事本++中的EOL转换 [英] EOL conversion in notepad ++

查看:108
本文介绍了记事本++中的EOL转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于某种原因,当我在 Windows 机器上从 unix 服务器打开文件时,它们偶尔会进行 Macintosh EOL 转换,当我再次编辑/保存它们时,它们在 unix 服务器上无法正常工作.我只使用记事本++来编辑来自这个unix服务器的文件,那么有没有办法创建一个宏,每当我打开文件时自动将EOL转换为Unix格式?

解决方案

该功能已内置于 Notepad++ 中.从编辑"菜单中,选择EOL 转换"->UNIX/OSX 格式".

更快查找(或不同语言版本)选项的屏幕截图

您也可以通过设置"->首选项"->新建文档/默认目录"在notepad++中设置默认EOL,然后在格式框下选择Unix/OSX".

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 work properly on the unix server. I only use notepad ++ to edit files from this unix server, so is there a way to create a macro that automatically converts EOL to Unix format whenever I open a file?

解决方案

That functionality is already built into Notepad++. From the "Edit" menu, select "EOL Conversion" -> "UNIX/OSX Format".

screenshot of the option for even quicker finding (or different language versions)

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

这篇关于记事本++中的EOL转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆