Does anyone know how开发者_开发知识库 to configure eclipse NOT to copy font colors / background when doing CTRL+C?
Not that I would ever cut and paste code. I'm really asking this for a friend :)
I don't know if it can be set in Eclipse - I suspect not (I've looked and not found it). What works for me is to paste to an editor that doesn't accept the colours, such as Notepad, and then copy from there and paste in the destination. A little tedious (but it works!), I know, so I'll be watching this to see if someone else has a better solution. ;)
There are many utilities out there that will remove the clipboard text formatting. Personally, I'm on a Mac and I use Keyboard Maestro that can do that among other things. Searching the web yields many results, for example this one which is free.
I prefer "plain text paste" in many applications, regardless of the origin. Some programs have a "Paste and Match Style" option. If you can customize the shortcuts in the program, I usually switch the Ctrl-V to "Paste and Match Style" instead of "Paste" and assign Shift+Ctrl+V to "Paste".
精彩评论