Q . How to make netbeans default editor in ubuntu Linux?

@mit $ingh. asked, May 13 ' 2016

Please suggest

  • ubuntu
  • netbeans
  • default

1 Answers

Follow the below steps.

  1. sudo gedit /usr/share/applications/.desktop OR sudo gedit /usr/share/applications/netbeans.desktop
  2. Paste the below code in the above file. 
[Desktop Entry]
Comment=Netbeans IDE
Exec=/usr/local/netbeans-8.0.2/bin/netbeans > %U [Here you have to paste your Netbeans Path]
Icon=/usr/local/netbeans-8.0.2/nb/netbeans.png [paste your Netbeans logo path]


         This is the essential information, you can add more details such Icon and categories later.

         NOTE: the %U is very important after the Exec command without it the application won't appear in other applications list.

      3. After that, put the file in /usr/share/applications/ (need root privileges) and it should appear in the Dash when you type the name.

      4. Now go to any .php file, right click on it and choose properties -> open with -> show other application -> select your app.

      5. Enjoy coding! :)

Leave a Ansewer