You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open the find and replace dialogue and turn on regex;
In the Find field, input \n; in the Replace with field, input a whitespace;
Hit replace all.
The whitespace is supposed to replace the newline character entirely, but it seems the newline character is retained --- whatever is replacing \n got appended to each of the matching newline.
The text was updated successfully, but these errors were encountered:
@alexandrudima Thank you for your reply. Yes you are right, using \r\n works (I thought of it before but mistakenly tested \n\r perhaps). 👍 Wouldn't it be nice for VS Code to introduce an universal newline character like the \R in Sublime Text. 😄
alexdima
changed the title
Replacing matched newline character does not replace the newline character itself
Introduce an universal newline character like \R
Jul 2, 2016
This feature request will not be considered in the next 6-12 months roadmap and as such will be closed to keep the number of issues we have to maintain actionable. Thanks for understanding and happy coding!
Steps to Reproduce:
The whitespace is supposed to replace the newline character entirely, but it seems the newline character is retained --- whatever is replacing \n got appended to each of the matching newline.
The text was updated successfully, but these errors were encountered: