Using Rich-Text Copy in IntelliJ IDEA 14.1
IntelliJ IDEA 14 added built-in support (without additional plugins required) for copying text to external rich-text editors such as MS Word, OpenOffice Writer, Gmail, etc. allowing for preserving formatting.
IntelliJ IDEA 14.1 makes it more flexible, allowing you to choose when to use this feature. You can choose to enable this behavior by default when using the standard Copy action. All that’s need is to enable the following checkbox in Settings:
With this enabled, if you want the old behavior of standard copy (i.e. with no additional formatting)
you can use a separate action (Copy as Plain Text or Copy as Rich Text) from the Edit Menu entry or the editor’s context menu:
These actions do not have default shortcuts assigned, but you define them in Keymap settings if you find yourselves using one of them often.