I'd like to replace gedit, and use Sublime Text 3 as my default text editor for all text files on my Ubuntu system. Can you let me know how do I go about making this change?
I'd like to replace gedit, and use Sublime Text 3 as my default text editor for all text files on my Ubuntu system. Can you let me know how do I go about making this change?
These instructions assume that you have installed Sublime Text 3 using the
.deb
file provided for Ubuntu. If you downloaded the tarball and installed it manually, you will need to change the paths below to your install location.First, make sure that
/usr/share/applications/sublime_text.desktop
exists (sublime-text.desktop
on some systems):Then, open
/usr/share/applications/defaults.list
with Sublime:Search for all instances of
gedit
(org.gnome.gedit
on some systems) and replace them withsublime_text
. Save the file, log out and back in, and you should be all set.If for some reason
/usr/share/applications/sublime_text.desktop
(orsublime-text.desktop
) doesn't exist, create it:Open it in Sublime:
and paste the following into it:
However, if you installed Sublime Text using the
.deb
file downloaded from sublimetext.com, the file should already exist.Once you have Sublime installed, right-click on a text file. Go to the "Open With" tab. Select "Show other applications." Then, select Sublime Text 3.
Hope this helps!