Editor Preferences

Tabs

Use the Tab width spin box to specify the width of the space that gedit inserts when you press the Tab key.

Select the Insert spaces instead of tabs option to specify that gedit inserts spaces instead of a tab character when you press the Tab key.

Auto Indentation

Select the Enable auto indentation option to specify that the next line starts at the indentation level of the current line.

File Saving

Select the Create a backup copy of files before saving option to create a backup copy of a file each time you save the file. The backup copy of the file contains a ~ at the end of the filename.

Select the Autosave files every ... minutes option to automatically save the current file at regular intervals. Use the spin box to specify how often you want to save the file.