I have recently been using the code format verification tool: eslint, which has introduced a certain verification standard.
But every time I verify, the verification tool will prompt me that I am using CRLF and want me to replace it with LF.
I would like to ask everyone, how should this be replaced? Is it okay to use regular expressions?
高洛峰2017-06-29 10:11:46
Replace with a regular expression, replace rn
with n
. Among them, r
refers to CR
, and n
refers to LF
.
But generally speaking, most IDEs and editors have the option to directly switch the newline end character, such as the SublimeText I use: