Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Since I have downloaded and installed the Eclipse PDT Indigo, I want to make it opens automatically files with .php extension.

Before Oneiric's release, simply right clicking on any .php file, selecting the Proprierties item, and entering "Open as" tab, gives the possibility to set an custom application command-line to open the file, but now it doesn't possible.

Because I downloaded the Eclipse's .tar.gz binaries and simply extracted to /usr/lib and created a symbolic link to /usr/bin, it doesn't appear on the list of applications supported, and I can't set a custom command-line, only find online an other.

So, I make a question: how do I make my Eclipse PDT opens automatically PHP files?

Tks for all.

share|improve this question
See this answer on how to add eclipse to the Application list – Abhay Rana Mar 29 '12 at 15:10

I ran into the same issue.

I solved it by using Ubuntu Tweak:;

The current version has a tab "Admins", and at the bottom there is "File Type Manager"; select category "all" and browse to php script: there you can add to link to /usr/bin/eclipse.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.