Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Appending to end of line in eclipse

Is there a way to append string to the end of lines in Eclipse? Search and find seems like it would work, but using find with just the regex expression $ does not find any strings. .$ will find something, but running find replace with this deletes the last character of your line, which is undesirable. Does anyone know a way to accomplish this in Eclipse? Is there something I am doing wrong with my regex that might make Eclipse not understand this, while other editors like vim handle it just fine.. (in Vi / Vim :0,$s/$/appended to end of line/).

Surely I am not the only person who wishes there was this functionality... It's offered by most other good editors. Could this be considered a bug?

like image 669
gbtimmon Avatar asked Aug 03 '12 13:08

gbtimmon


1 Answers

In my case, using Eclipse Luna (4.4.0), the accepted solution didn't work. It is only replacing the first line and leaving the others. But the worked (wanted to added a semi-colon):

find: ^.*$
Replace: $0;
like image 136
Ramana Avatar answered Sep 22 '22 05:09

Ramana