Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to search for carriage return in eclipse

If I have the following text in my Eclipse editor:

Text Line 1 Text Line 2 

I would like to concatenate the text into:

Text Line 1Text Line 2 

My first idea was to search for carriage return character '\n' and replace it with '' to concatenate it.

I tried using the search function of Eclipse, but it does not recognize carriage return character.

Are there any other editor that can do this?

like image 993
zfranciscus Avatar asked Sep 08 '09 00:09

zfranciscus


People also ask

How to replace with new line in Eclipse?

You'll have to select the "new line character" by clicking on the last character's line and move the mouse before the first character on the next line.

How do I see the code line in eclipse?

The Eclipse search dialog box allows you to search for files that contain a literal or a character pattern in the entire workspace, a set of projects, a specific project or folders selects in the package explorer view. Clicking on the Search menu and selecting Search or File or Java. Clicking Ctrl + H.


1 Answers

Eclipse does this if you:

  • turn on regular expression mode in search/replace
  • enter \R for the newline
like image 52
soru Avatar answered Sep 22 '22 10:09

soru