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:
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 12.10 64 bit
Netbeans 8.2 IDE