Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 14 down vote accepted

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.

share|improve this answer
here is an example to associate python files with sublime py "/path/to/sublime_text" – suhail Feb 13 '14 at 8:31
html /opt/sublime_text/sublime_text ubuntu 14.04 – zipzit Jan 3 '15 at 6:51

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.


share|improve this answer

Your Answer


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.