一次更改多个文件的EOL [英] Change EOL on multiple files in one go

查看:106
本文介绍了一次更改多个文件的EOL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Notepad ++中是否有任何方法(甚至使用其他工具)自动一次性更改多个文件的行结尾?

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

即将Windows EOL(CRLF)和UNIX EOL(LF)文件的混合转换为全部Windows EOL(CRLF)

i.e. convert a mix of windows EOL (CRLF) and UNIX EOL (LF) files to be all Windows EOL (CRLF)

推荐答案

替换对话框可以处理扩展字符,例如EOL.只需将搜索模式"更改为扩展",即可使用EOL(在Windows中为\ r \ n或在Unix中为\ n),制表符(\ t)等.

The Replace dialog can handle extended characters like EOL. Just change "Search Mode" to "Extended", and you can work with EOL (\r\n in Windows or \n in Unix), tabs (\t), etc.

您还可以使用对话框的在文件中查找标签在多个文件中进行替换.

You can also use the Find in Files tab of the dialog to do the replace across multiple files.

这篇关于一次更改多个文件的EOL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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