How to change the default text editor of GNOME

gnome

gedit is the default editor of GNOME, how do I change it?

I modified the file /etc/gnome/defaults.list, then rebooted the system, and it works.

Best Answer

Right click on the text file you want to open, choose Properties and then Open with. You should find the various alternatives in the Recommended Software or Other Applications lists. Click the one you want and then the "Set as Default" button.

That's Ubuntu 16.04, Gnome version 3.18.2.

enter image description here