When I paste text from Eclipse into Word, it puts each line on its own paragraph. Manually correcting these to line-breaks (shift+enter) is a hassle, is it possible to automate this?
I'm using Word 2008 for Mac if that makes a difference (but would like to know this for other versions of Word too if they differ).
Best Answer
http://support.microsoft.com/kb/214204
You want to replace
^p
with^l
(typed literally - the^
character does not indicate CTRL in this instance), and wildcards must be off for this to work.To search and replace in just a selection of text rather than the entire document, select the text, bring up the search and replace dialog, and ensure "Current document down" is selected. Now when you click "replace all" it will only search inside the selected text and will prompt you before performing replacements on the rest of the document.