7. Closing files

When you want to close a file quickly, click on the close icon in the document tab. You may also use the Close icon in the main tool bar, or the FileClose (Ctrl-W) menu item.

A screen shot of the close icon in the document tab

Figure V.13. Closing a File with the Document Tab Icon

If the file is unchanged, it is merely closed. If the file has been modified, you will be presented with a save dialog.

A screen shot showing how to close a modified file

Figure V.14. Closing a modified File

[Tip]

Use it to save and close a file in one step.

When dealing with multiple files, you may want to use the FileClose All (Shift-Ctrl-W) menu item.

For each modified file, you will be presented with a save dialog, where you can choose to save the changes, close the file (i.e. discarding any change), or cancel the operation.

A screen shot showing how to close all files

Figure V.15. Closing all Files

[Tip]

Say you have a number of open files, and only a few of them have been changed. To quickly close the unchanged files, and remain with the modified ones, use it answering cancel for the latter ones.

Note that the FileClose Window menu item offers the same behaviour.