has been tangled Eclipse PHP plug-in version of the PHP code format is too weak, today occasionally opportunity to see the following sites:
Http://www.ciphp.com/2011/12/774/comment-page-1
So it was installed in the virtual machine: Eclipse for PHP developers
In the information provided by this station, look for PHP formatting plug-ins. Tried out almost all of the pdt_tools.formatter versions. is unsuccessful, so in the case of almost giving up, try to update Eclipse's eclipse IDE and then update the PHP Development toos (PDT) SDK feature to version 2.2.1.v20101001-2300-5318 ..., After the failure (the prompt is installed, the version is 1.3 ...). ), the direct installation of Pdt_tools.formatter_1.4.0.20120119.zip, the successful installation of the PHP code formatting plug-ins. Why install Pdt_tools.formatter_1.4.0.20120119.zip, because this is the highest version of the current eclipse can be installed. The Pdt_tools.formatter_1.5.0.v20120929.zip installation will fail. In this record installation steps, for users to share.
Open Eclipse, follow the action below: Select Check for Updates
When you select Check for Updates, the following appears:
Depending on the network situation, it will appear later:
Click "Next" to appear:
When you continue to point "Next", you appear:
Select "I Accept the terms of the license Agreement" after clicking "Finish" to appear:
When the installation is complete, the system prompts you to restart Eclipse. Reboot.
Download: Pdt_tools.formatter_1.4.0.20120119.zip
Download Address: http://sourceforge.jp/users/atlanto/pf/eclipse/files/
After you restart Eclipse, select Help->install New Software ... , as shown in the following illustration:
Click Work with: The last "Add" button in the line, in the "Add Repository" window, click the "Archive ..." button, select Pdt_tools.formatter_1.4.0.20120119.zip file, Click OK.
Select "PDT tools:formatter" in the picture below, and don't choose the other two Japanese words. As shown in the following illustration:
After selecting, click Next, continue next, then select "I accept the terms of the License Agreement" and click "Finish", as shown in the following figure:
When you select OK, the system prompts you to reboot Eclipse and reboot.
Select Window->preferences, according to the location of the following figure, you can configure the format of the PHP template content:
Reference website and resources download
Eclipse for PHP developers download
Http://www.eclipse.org/downloads/packages/eclipse-php-developers/heliossr1
Format plugin Download
http://sourceforge.jp/users/atlanto/pf/eclipse/files/
Other resources
Https://groups.google.com/forum/#!msg/joomla-dev-cms/AJ2qGVK0Gmg/KTvFyonZySMJ
http://www.eclipse.org/pdt/downloads/
Http://eclipse.org/pdt/release-notes/3.1.1/