Setting netbeans as my default PHP IDE on ubuntu

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 [caption id="attachment_1296" align="alignnone" width="300"]ubuntu - netbeans ubuntu - netbeans[/caption] My environment: Ubuntu 12.10 64 bit Netbeans 8.2 IDE [si-contact-form form='1']



Your feedbacks are most welcome..