How to change the Gnome/Nautilus default text editor?
How to change the Gnome/Nautilus default text editor?
I have Visual Studio Code installed and I'd like to make it my default text editor. From Nautilus I can right click on a text file, go to "Open With Other Application" and choose "Visual Studio Code". However I'd like to be able to change the default to Visual Studio Code so I can simply double click on a text file to open it in Visual Studio Code. I tried updating "~/.local/share/applications/mimeapps.list", but that didn't help.
-
- Posts: 1522
- Joined: 2014/05/21 20:16:00
- Location: Central New York, USA
Re: How to change the Gnome/Nautilus default text editor?
Have you tried "Properties" when you right click - then 'Open with' tab, and set as default ?
EDIT:
By the way (FYI), you'll be changing the default editor for all files of that type, not just that one file. In your case, I suspect that's what you want.
EDIT:
By the way (FYI), you'll be changing the default editor for all files of that type, not just that one file. In your case, I suspect that's what you want.
Re: How to change the Gnome/Nautilus default text editor?
I don't use gnome 3 here but on MATE there is an option of the menu for System -> Perferences -> Personal -> Preferred Applications and there's an "Editor" option on the system tab of that.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: How to change the Gnome/Nautilus default text editor?
That was it, I knew I was missing something simple, thanks! With Google as my witness I searched for this and only came up with other simple solutions that didn't apply and more complicated mime type file editing solutions that also didn't work.lightman47 wrote: ↑2018/07/07 12:05:14Have you tried "Properties" when you right click - then 'Open with' tab, and set as default ?
Re: How to change the Gnome/Nautilus default text editor?
Gnome 3 has a "Default Applications" settings area that sounds similar, but you can't set the default text editor there.
Re: How to change the Gnome/Nautilus default text editor?
Just in case anyone didn't think I was stupid enough for not knowing how to change a Nautilus file association, I just noticed the Visual Studio Code CentOS setup page actually tells you how to had see it as your default text editor by running this:
Code: Select all
xdg-mime default code.desktop text/plain