Eclipse is my primary IDE for WordPress Plugin development. Some time back I’ve written an article on how to Setup your WordPress Plugin into Eclipse? In other words: Eclipse and WordPress Plugin SVN repository Connectivity.
You could develop plugin OR edit PHP file in any text editor, but why not to use Eclipse plugin called PDT for better user interface. PDT should be a must have extension for any Eclipse Environment. That’s the first thing I do after downloading Eclipse. PHP Development Tools (PDT) delivers a PHP Integrated Development Environment framework for the Eclipse platform. It leverages the existing Web Tools Project in providing developers with PHP capabilities.
PDT comes with below built in features. If you are a Java Developer then you might already know about all of these features:
- Syntax Highlighting
- Content Assist
- Code Formatter
- Quick Outline
- Code Templates
- Code Navigation
- Power of Eclipse Ecosystem
- PHP Debugging
- Syntax Validation
In this tutorial I’ll show steps on how to install PDT in Eclipse.
Help -> Install New Software...
Add… and then
Eclipse PDT update site:
checkbox infront of Packages and click
Accept Terms and Conditions ->
Now restart Eclipse and open same .php file again. You should see all above mentioned benefits.