Tuesday, July 22, 2008

Intellij escapes strings on paste

I started using intellij, and coming from eclipse, some things are just wrong, or missing.
One thing that was driving me crazy was that when pasting strings that contain escaped literals, intellij would escape the escapes in the paste.
This string:
"something \" \t cool"
would become:
"something \\" \\t cool"
this was bad, especially for pasting around html tags with attributes.

some googling shows a long and old thread of people bitching about the same on the intellij forums:

Dont bother reading that thread though, there is no solution in it.

The solution is this:

This plugin unescapes your characters when you copy, so when you paste, intellij ends up escaping the characters and nothing breaks.


  1. No need a new plugin. Type:
    Ctrl+Alt+Maj+V (Edit|Paste Simple)
    Note you can change shortcuts!

  2. @Hugues: Brilliant! Thank you.