Command Reference — File category — Save and Close command

# Save and Close command

## Summary

Saves and Close the current file.

## Description

Saves the changes to, and closes the current document.

## How to Run

- Default Menu: File > Save and Close

- All Commands: File > Close > Save and Close

- Toolbar:

- Status Bar: None

- Default Shortcut Key: CTRL+E

## Plug-in Command ID

    EEID_FILE_SAVE_EXIT (4116)

## Macros

## [JavaScript]

    editor.ExecuteCommandByID(4116);

## [VBScript]

    editor.ExecuteCommandByID 4116