Pages

Thursday, December 6, 2012

Set netbeans as default editor in ubuntu

  1. Install ubuntu tweak
    
    sudo apt-add-repository ppa:tualatrix/ppa
    sudo apt-get update
    sudo apt-get install ubuntu-tweak
    
    
  2. Find the MIME description for your file extension
    1. Right click on the file and click on properties
    2. In the properties window, note the text shown after Type:
    3. This is the mime description we are looking for. for ex: PHP script
  3. Add a custom program to open your filetype
    1. Start Ubuntu Tweak from the Dash, and click on the Admins tab on top; then click on the File Type Manager entry on the bottom:
    2. After the File Type Manager opens, click on All in the left sidebar, and uncheck the Only show filetypes... box at the bottom:
    3. Select any filetype on the right side, and begin typing the first few letters of the MIME description from Step 2 to automatically search and select your filetype:
    4. Double-click on your filetype, which is now selected, to edit its associated commands.
      1. Click on Add, and in the Add Application window, expand the Custom Command option on the bottom
      2. Type the command/program you want or use the Browse button to navigate to it and select it; here I have selected the Netbeans editor from my /opt folder:
        
        /opt/netbeans-7.2.1/bin/netbeans
        
        
      3. Click on Add, so the new command is now the default, and then click Close:
  4. Now right click on file and click on properties. Click on 'open with' tab. The default application should be netbeans. Close this window and open the file. It should open in Netbeans

2 comments:

Anonymous said...

thanks for helping,i have solved my issue by fallowing the above steps its great.

Unknown said...

Great !!