Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have installed Sublime Text 2. I have set all the default files to open with this. However, when I open a file from my server using FileZilla (by right-clicking and file and then click "View/Edit") it still opens up in Gedit.

Can I change this?

share|improve this question
add comment

2 Answers 2

up vote 6 down vote accepted
+50

You can set it by going to edit>Settings, and then going to the Filetype Associations section and adding the filetypes and the editor you want.

Here's a bit more detailed set of instructions:
http://www.liberiangeek.net/2011/11/install-filezilla-in-ubuntu-and-set-the-default-editor/

share|improve this answer
    
here is an example to associate python files with sublime py "/path/to/sublime_text" –  suhail Feb 13 at 8:31
add comment

Go to Edit -> Settings and navigate to File Editing.

Choose Use custom editor and browse the executable file of Sublime Text 2.

Close the dialog by pressing OK.

Done!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.