Wednesday, April 9, 2008

Cut and Paste of strings in Eclipse

One important feature of IntelliJ that Eclipse was lacking (at least I thought so) is an automatic escaping when pasting strings.
So it appeared that Eclipse does not lack this feature, but for some reason it's unchecked by default and it's not easy to find it.

And here it is:
Windows --> Preferences --> Java --> Editor --> Typing --> In string literals --> Escape text when pasting into string literals


Recommended Reading

1. Guards! Guards!
2. Witches Abroad
3. Wyrd Sisters

3 comments:

Joserra said...

Great! Thanks a lot! :)

Unknown said...

Thanks... was missing that feature in eclipse...

asgs said...

excellent. a great simple feature to have.