eclipse -> Window -> Preferences -> Java -> Editor -> Typing -> 勾選{Escape text when pasting into a string literal} 效果: