Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce an universal newline character like \R #8601

Closed
zhangxiubo opened this issue Jul 1, 2016 · 3 comments
Closed

Introduce an universal newline character like \R #8601

zhangxiubo opened this issue Jul 1, 2016 · 3 comments
Assignees
Labels
editor-find Editor find operations feature-request Request for new features or functionality
Milestone

Comments

@zhangxiubo
Copy link

  • VSCode Version: 1.3.0-Insider (2016-07-01 build)
  • OS Version: Windows 7

Steps to Reproduce:

  1. Open a new buffer;
  2. Type three lines of text;
  3. Open the find and replace dialogue and turn on regex;
  4. In the Find field, input \n; in the Replace with field, input a whitespace;
  5. 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.

@bpasero bpasero added bug Issue identified by VS Code Team member as probable bug editor labels Jul 1, 2016
@alexdima
Copy link
Member

alexdima commented Jul 1, 2016

@zhangxiubo Are you using \r\n as the EOL sequence in your file?

image

In that case you'd need to search for \r\n:

ggjnzdyc7m

@zhangxiubo
Copy link
Author

zhangxiubo commented Jul 1, 2016

@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 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
@alexdima alexdima added feature-request Request for new features or functionality editor-find Editor find operations and removed bug Issue identified by VS Code Team member as probable bug labels Jul 2, 2016
@alexdima alexdima removed their assignment Jul 2, 2016
@rebornix rebornix self-assigned this Apr 28, 2017
@rebornix
Copy link
Member

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!

@rebornix rebornix added this to the Backlog milestone Nov 20, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-find Editor find operations feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants