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.
Step-1
Click on Help -> Install New Software...
Step-2
Click on Add
… and then Add Repository
.
Eclipse PDT update site:
http://download.eclipse.org/tools/pdt/updates/latest/
Step-3
Select checkbox
infront of Packages and click Next
-> Accept Terms and Conditions
-> Finish
Step-4
Now restart Eclipse and open same .php file again. You should see all above mentioned benefits.