Of course this question can be googled - however most of the hits are very old and don't seem to apply in Eclipse Mars.
I simply want to replace a line with a multiline replacement. There must be some way to do this, but I can't seem to find anything that works.
replace
import a.b.c.d;
with
import e.f.g.h;
import i.j.k.l;
1. Find all with "public" and change to "\npublic", \n being the new line in a string to give you the idea of what I mean. 2. A convenient eclipse shortcut that separates all the methods in a class with an empty line.
This Eclipse plugin enhances any editor in Eclipse with a Find/Replace dialog that can be brought up with Ctrl + F5.
First you need check "Regular expressions"
Then simply add \R between line.
For example
Ctrl+F, select "Regular expressions"
"Find" box you put : import a.b.c.d;
"Replace with" box you put : import e.f.g.h;\Rimport i.j.k.l;
Then it will been replaced and separate line as you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With