How to change the default text editor

I am looking for a way to change the default text editor. I can already change it per file type by doing:

  1. Right-click on a file
  2. Open With
  3. Other application…
  4. Select the desired application
  5. Hit the “Set as default”

However, I want to change the default application for all types of text files. I already found a similar topic but it doesn’t provide a solution to that problem: Replace Text Editor system app for different one - #7 by zilexa

I found the “Default Applications” tab in the system’s Settings but there is no entry for text:

Any help would be greatly appreciated.

There isnt a concept of “all text files”. Mimetypes are basically types of files usually denoted by their file extensions. So .csv which is a text file is different from a .txt which is also a text file. So in these cases you would normally want the text file with a .csv opened in a spreadsheet based application. Likewise, .txt you would want to open in your favourite text editor.

Alright, thanks for the info. I’m going to mark your answer as the solution in that case.