Is there a way to copy code from the Eclipse IDE without formatting rich text?

Recently, every time I copy a block of code from Eclipse and paste the code into TextEdit or an online forum using code tags, I get rich-text or html formatted code, so I need to copy the text, the editor deletes the copy and paste formatting again. In the past, this was not a problem that I used to copy from eclipse and pasted the code without any formatting at all as plain text, I don’t know if I will include the property or what I did for this, any ideas how to fix it ?

+5
source share
2 answers

Note: rich formatting from the SWT editor seems to have always been available ( bug 64498 ).

You can use the Edit, Paste and Match Style "in TextEdit.

From the Edit menu, select Paste and Match Style ,
or use a keyboard shortcut Shift Option Command V.

Nested text will display all formatting from the character to the left of the blinking insertion point. This method also works in Mail.

+1
source

There is an Eclipse error for this, for which you can vote for:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=45969

It has been open for 10 years!

, , , . , , , "- " -- -- - ".

+4

All Articles