Setting netbeans as my default PHP IDE on ubuntu

Posted on January 3, 2017 by Suresh Kamrushi in General

Whenever I am trying to open any PHP file, it does not show NetBeans option in “open with” in Ubuntu.
I did following changes to achieve this:
Step 1: Go to the following location:

cd /usr/share/applications/

Step 2: locate netbeans.desktop file

ls -al | grep netbeans

Step 3: update the netbeans.desktop file

vim netbeans 
Exec=/bin/sh "/usr/local/netbeans-8.0.2/bin/netbeans" %U

You just need to add “%U” at the end of the “Exec..” line.
Step 4: Close the after update by pressing :wq

ubuntu - netbeans

ubuntu – netbeans

My environment:
Ubuntu 12.10 64 bit
Netbeans 8.2 IDE

  Comments or questions are welcome  

Tagged as , ,