score:147

Accepted answer

check box 'regular expressions' and use '\r' in the 'replace with' box

it's a new feature introduced with eclipse 3.4, see what's new in 3.4

score:0

i've just found an article about that problem. it seems to be a bug.

there's a workaround which is to copy a new line in clipboard and then paste it inside the "replace" box.

score:0

i'm using helios and it works, however i had some issues with replacement... i wanted to place a line break between any of these brackets "><" (to make each new xml tag go to a new line)... first i had to place a chacter between the 2 brackets, for instance /r, after this i checked the "regular expressions" box and replaced the /r with \r, which resulted in the correct linebreak. otherwise, the replace seemed to be greyed out.

score:0

if the file search is performed with regular expressions checkbox checked, then replace all / replace selected will also allow regular expression and will transform \n to a newline in the file(s)

score:2

check box 'regular expressions' and use '\n' in the 'replace with' box

score:2

like the others said, just use regular expression, but instead of just \r, put \r\n


Related Query

More Query from same tag