Close a file

To close a file in gedit, select Close. Alternately, you can click the small "X" that appears on the right-side of the file's tab, or press Ctrl+W.

Any one of these actions will close a file in gedit. If your file contains changes that have not been saved, gedit will prompt you to save those changes before closing the file.