This quick tutorial shows you how to enable auto save in Gedit text editor.
Gedit, the default text editor in Ubuntu and some other Linux distributions is a powerful, lightweight text editor. It comes with
Gedit also has an autosave feature which is not enabled by default. It comes handy when you are editing a document and want to save your work periodically. The autosave feature does not work on new unsaved
Note: The autosave feature only works with a previously saved file.
Enable autosave in Gedit
There are two ways you can enable the autosave feature in Gedit, the GUI way and the command line way. I’ll show both methods to you.
Method 1: The GUI Way
For the GUI mode, open Gedit and go to Menu->Preferences. Under the Editor tab, check the Autosave box. You can also change the autosave interval here. The default autosave interval is 10 minutes.
This is how it looks like in Ubuntu 18.04 GNOME:
Method 2: The command line way
If you prefer command line over GUI, you can make Gedit automatically save your documents via terminal as well.
Open a terminal and use the following command to enable autosave in Gedit:
gsettings set org.gnome.gedit.preferences.editor auto-save true
To set or change the autosave interval, use the following command in terminal:
gsettings set org.gnome.gedit.preferences.editor auto-save-interval n
Where n represents number of minutes.
I hope this quick helped you t enable the autosave feature in Gedit text editor. Cheers :)