I am using Eclipse (Version: Indigo Service Release 2) on Mac OS X (10.7) with PHP Development Tools and Aptana Studio 3 Plugin.
In Preferences > General > Workspace I h
I had exactly the same annoying problem. After some research and experimentation I think I found the source of the bug and a workaround.
Observations on my set up (Eclipse 3.7.2, PDT 3.0.0, no aptana):
delimiters. This behavior felt like an issue with automatic indentation handling, so I tried dis-/enabling indentation related options. Disabling the following option fixed it for me:
PHP > Editor > Typing > When pasting adjust indentation
good luck