Make ST3 as the default text editor on Ubuntu 16.04

Every time I wanna open a plain text file on my Ubuntu, I have to right click on the file and select open with .... How to change the default text editor to ST3 instead of gedit?

This can be solved with ease. A post was found here on askubuntu. Just follow what described in the first reply:

  1. make sure the sublime_text.desktop exists in /usr/share/applications/, and there is also a file named with defaults.list in this folder
  2. open the defaults.list and replace all gedit with sublime_text
  3. reboot the machine, it works!

Attached,

we can type nautilus in therminal to open the pwd in a window, we do this on Windows OS with start

你可能感兴趣的:(Make ST3 as the default text editor on Ubuntu 16.04)