Copy formatted code

Hi,
is there a way or a plugin for Idea to copy formatted Java code into the clipboard ?

I've found a "copy to html" plugin but it doesn't work in intellij 11.

cheers

4 comments
Comment actions Permalink

Hello,

Do you mean something over copying editor text from the IDE?

Denis

0
Comment actions Permalink

I'd like to be able to copy / paste the code along with the syntax highlighting.

0
Comment actions Permalink

There is no native support at the IDE for that, just a request - IDEA-67767.

Denis

0
Comment actions Permalink

Tex-Twil wrote:
I've found a "copy to html" plugin but it doesn't work in intellij 11.

If you take a look at this ticket -- http://youtrack.jetbrains.com/issue/WI-8163 -- there is a jar file attached that is the Copy to Html plugin updated to work in IDEA 11 (and 12). It appears that the author of the plug-in is no longer maintaining it, so the updated version cannot be put into the plug-in repo.

To install plugin jar just drop it in the plugin directory and restart IDEA.

  • Windows: C:\Users\{username}\.IntelliJIDEA11/config/plugin
  • Mac: ~/Library/Application Support/IntelliJIdea11  <-- I'm not 100% sure that is the location. See http://devnet.jetbrains.net/docs/DOC-181 for more info.
0

Please sign in to leave a comment.