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?
vscode has this function
Replace with a regular expression, replace
rn
withn
. Among them,r
refers toCR
, andn
refers toLF
.But generally speaking, most IDEs and editors have the option to directly switch the newline end character, such as the SublimeText I use: