I’ve been having problems with editing html and css files in Eclipse for quite some time now, even when I’m using the latest version of Eclipse, Galileo, and the latest version of PDT. Typing constantly lags, and just typing a short string sometimes takes around 12 seconds to appear. My machine is no wuss either, its a Macbook Pro with 4gb of ram, and I’ve allocated 2gb of that for eclipse alone. The problem stems from constant validation when typing even though the validators are suspended/disabled. To remedy this problem follow the following steps:
- Go to Preference window
- Expand the General tab
- Expand the Editors tab
- Click on the Structured Text Editor then disable the following:
- Report problems as you type
- Inform when unsupported content type is in editor
- Enable folding
- Enable semantic highlighting
That helped me alot in making Eclipse usable again for PHP development, now I can return to Eclipse from using Netbeans.
Update: Although Eclipse became usable with the tweaks above, I got spoiled with Netbeans’ speed especially the speed of code completion in PHP. Its nice being able to work with both PHP and Java without changing perspective. Now if only Netbeans’ would improve their Subversion support, that would be epic (well at least for me)!
