Save a file

To save a file in gedit, click on the Save button on the right side of the header bar.

For a new file, a dialog will appear, and you can choose the name and directory where the file will be saved.