eclipse -> Window -> Preferences -> Java -> Editor -> Typing -> 勾选{Escape text when pasting into a string literal}