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?
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?
You can set it by going to
edit > Settings
, and then going to theFiletype Associations
section and adding the filetypes and the editor you want.Go to
Edit -> Settings
and navigate toFile Editing
.Choose
Use custom editor
and browse the executable file ofSublime Text 2
.Close the dialog by pressing OK.
Done!
Screen shot of a mac application
Write in the terminal :
dpkg -L sublime-text
to check the sublime current location.And then try to find something like this :
/usr/bin/subl
Now you just need to go to - edit - settings - Filetype Associations
And write the following :
to open in the same window
and...
to open in the new window :)
If you installed sublime-text via snap on Ubuntu 18.04 you can use
as per direction given in set default editor for filezilla in ubuntu 16.04 , you can modify for default editor.
You have to change the preference as for the executable file exist in /usr/bin/$PATH for editor.
All the above posts are correct, i am just sharing with pictures for better understanding and I am using
ubuntu 16.04
withupdated FileZilla
.Run this command.
dpkg -L sublime-text
Press
CTRL + L
and Search for /usr/bin sblm and select.You can set it by going to edit -> Settings in filezilla, and then go to Filetype Associations section and add the filetypes and the editor you want for them.
/opt/sublime_text/sublime_text is executable path of the sublime text editor. You can enter your own path of executable file.
You can find directory your installation, in my case, the directory of install of sublime is:
Case you have installed your FileZilla, can you open your old configure file, for it, you can use the commands:
or
in the file, you search the word "editor" using the command: /editor
look a picture
In line has the directory of your old text editor.
For Ubuntu 16.04. First, find out where your Sublime-Text is located: go to usr/bin and double click sublime-text. You should see something like:
Copy just the beginning of line 2:
Add html to the front:
Go to edit -> Preferences -> Filetype associations and paste that in.