Eclipse: paste_it_here
Fri Oct 05 19:29:00 CDT 2007
Boss found this feature in eclipse that will prove useful:
I had 20 lines of javascript in a .js file and I wanted to cutpaste it into a string literal in java.
String s = "PASTEITHERE";
I figured this out: window -> preferences -> java -> editor -> typing Check: "Escape String when pasting into string literal"
Poof, it works. It does incorrectly escape some javascript ( it converts var foo='bar' into var foo=\'bar\' ) so you have to touch up the results. Still, kinda nice. I wish it had been the default editor behavior