Close a file

To close a file in gedit, click the × button that appears on the tab title. Note that when only a single file is open in a window, you can close the window instead.

If your file contains changes that have not been saved, gedit will prompt you to save those changes before closing the file.