I've downloaded the Eclipse PDT package as well as however, I can't find any options for formatting my PHP such as specifying line breaks, etc.
In this answer to another question, https://stackoverflow.com/a/3517764, there is a screenshot of what I understand is what I should be seeing. However, all I see is an extremely basic setting panel where I can set whether or not I want spaces or tabs to be used and how many to be used.
Any help on getting a good formatter would be great.
Ideally, it'd be a formatter for within Eclipse as opposed to another tool.
I'm currently using Eclipse Juno 4.2.2
Cheers
From what I see, PDT 3.1.x branch doesn't have a fully customizable code formatting rules. If you go and install/update to PDT 3.2 branch you'll get java-like code formatting options.
In Eclipse Juno go to:
Help > Install New Software
Click the "Add" button that appears near the top right
For Name you can put "PDT 3.2 Release" (or whatever you want really)
For Location you HAVE to put http://download.eclipse.org/tools/pdt/updates/3.2/release
Once you update/install PDT and restart eclipse if you go to
Window > Preferences > PHP > Code Style > Formatter
You'll see a highly customizable formatter to use.
Note, I got the link for the 3.2 release from: http://projects.eclipse.org/projects/tools.pdt
The java editor options for eclipse include an option for automatically placing a semicolon at the end of a statement if you type it anywhere in the line.
Eclipse PDT does not seem to have a similar option for PHP. Is anyone aware of a module that adds this capability (or any other way to avoid having to manually move the cursor out of a nested set of parens to add the statement terminator?
Currently the PDT doesn't support such functionality.
For Java you can find it under Window -> Preferences -> Java -> Editor -> Typing and here Automatically insert at correct position: Semicolons.
However there's no such option under PHP -> Editor -> Typing.
As far as I'm aware at one point someone had an idea of implementing this feature, however PDT team in recent years is really struggling (you most likely work on Eclipse Helios PDT which is based on a Helios release of Eclipse from 2010, while current version of Eclipse is Juno from mid 2012, and Eclipse team is working on moving into the Kepler release) so I wouldn't count on this feature being implemented in any foreseeable future.
As far as I'm aware - there's also no additional plugin to support such functionality in PHP.
I have Eclipse PDT Indigo installed. I downloaded it form zend's site. From the first day it was prompting me to try the original product Zend Studio. But eclipse PDT was actually serving purpose as it did for many years. But one day I installed it. Just clicked a tempting button.
Now I dont want to use it. Still 15 days remaining. But How do I remove it? From the software center I try to uninstall it. But how do I do it?
What have I tried?
I opened the Help menu. There was "install new software". Nothing like "uninstall". I though in the "install new software" dialog there might be a way to deselect them. But no. There is no way.
Under Indigo/3.7 the "Help > About Eclipse > Installation Details > Installed Software tab > Uninstall..." option works. For some.
Source: FAQ How do I remove a plug-in?
Please let me know if that solved your issue.
I went to zend-eclipse-php/plugins directory and removed all com.zend stuff from there (files and directories). Don't know what was gone but Eclipse stopped bugging about the license. And don't know what's that org.zend stuff - at least the name implies it's not commercial.
That's pretty much the standard way of getting rid of unnecessary Eclipse plugins.
super easy question that i can't find the answer to on eclipse's website....
i have a new laptop and am installing eclipse on it. things seem to have a changed a bit since the 3.5 version i have on my current comp. i recall dloading eclipse just once, and then installing some plugins for stuff like php editing. but the new downloads page seems to have entirely different versions for the different languages:
http://www.eclipse.org/downloads/
so will i need to do one install for java, one for php, one for anything else? or is the method the same as before?
thanks,
jonah
You can install different development platforms onto your base Eclipse installation. Go to Help > Install new software and then try typing in PDT into the Work with text field. You should see it autocomplete with http://download.eclipse.org/tools/pdt/updates/. If selecting it doesn't automatically populate the area below, try the Add button.
You should eventually see options for the PDT SDK that you can select to install.
See also:
the official installation wiki
the package comparison page.
I have a clean Eclipse Java SDK. I would like to make it suitable for developing PHP applications. So I need a PHP IDE plugin (or something like that). How could I install it from the Eclipse environment?
Easy as pie:
Open Eclipse and go to Help-> Software Updates-> Find and Install
Select "Search for new features to install" and click "Next"
Create a New Remote Site with the following details:
Name: PDT
URL: http://download.eclipse.org/tools/pdt/updates/4.0.1
Get the latest above mentioned URLfrom -
http://www.eclipse.org/pdt/index.html#download
Check the PDT box and click "Next" to start the installation
Hope it helps
To install PDT (PHP Development Tools) for PHP development environment is better in Eclipse. The following are the steps to install PDT in Eclipse (I'm considering version 3.7 (Indigo)):
Open Eclipse (in my case Eclipse Indigo).
Go to Help --> Install New Software...
Expand the "Work with" drop down and select "Indigo - http://download.eclipse.org/releases/indigo".
Expand "Programming Languages" from the list.
Check PHP Development Tools (PDT) SDK Feature.
Click "Next >" at the bottom and follow the further instruction of Eclipse.
After successful installation of PDT: Go to Window --> Preferences and see the list as PHP at left panel.
Open up eclipse, go to "Help -> Install New Software". Enter:
http://download.eclipse.org/releases/juno
entry from the "Work with" dropdown.
Under the "Web, XML, Java EE and OSGi Enterprise Developmet" category, select "PHP Development Tools (PDT) SDK Feature 3.1.1.201209101312".
The new URL for the repository is now http://download.eclipse.org/tools/pdt/updates/release. In Eclipse: open Help -> install new sofware -> add. Then paste this URL in the location.
Mark the check boxes you want and click next.
Help --> Install New Software
In work with select box , only I have selected Kepler - http://download.eclipse.org/releases/kepler
And then under Programming language category you can find PHP Development tool.
fyi :I have ubuntu
The best solution would be to go to http://projects.eclipse.org/projects/tools.pdt/downloads where you will find the URL to the most updated PDT, as most of the URLS listed above are hitting a 404. Then pasting the URL to eclipse.
Easiest Way To install PDT
Run eclipse
Click on "Help", "Install New Software"
“Choose all available sites”, in search box type "php"(takes a while to load)
=> “programming languages” => "PHP Development Tools", => PhP Development Tools (PDT) SDK Feature.
Restart eclipse
File new => other => php .
Should be able to follow from their
The URL which worked for me is http://download.eclipse.org/tools/pdt/updates/2.0/interim/.
See also Stack Overflow question Installing PDT in Eclipse - No runtime option .. only SDK.
Eclipse for PHP Developers Package
Looking for the Eclipse for PHP Developers Package?
Due to lack of a package maintainer for the Indigo release there will be no PHP (PDT) package. If you would like to install PDT into your Eclipse installtion you can do so by using the Install New Software feature from the Help Menu and installing the PHP Development Tools (PDT) SDK Feature from the Eclipse Indigo Repo >> http://download.eclipse.org/releases/indigo
Text grabbed from page:
http://www.eclipse.org/downloads/php_package.php
Updated for 2019: As previously suggested, in the latest Eclipse, go to "Install New Software" in the Help Menu and click the "add" button with this URL http://download.eclipse.org/tools/pdt/updates/latest/ that should show the latest release of PHP Development Tools (PDT). You might need to search for "php" or "pdt". For Nightly releases you can use http://download.eclipse.org/tools/pdt/updates/latest-nightly/.