Command Reference — File category — Save Workspace, Save, and Close All command

# Save Workspace, Save, and Close All command

## Summary

Saves the workspace, saves and closes all open files.

## Description

This command saves the workspace and all open documents, then closes all open documents. This command is equivalent to the Save Workspace command followed by the Save and Close All command.

## How to Run

- Default Menu: None

- All Commands: File > Close > Save Workspace, Save, and Close All

- Toolbar: None

- Status Bar: None

- Default Shortcut Key: None

## Plug-in Command ID

    EEID_SAVE_WORKSPACE_EXIT_ALL (4331)

## Macros

### [JavaScript]

    editor.ExecuteCommandByID(4331);

### [VBScript]

    editor.ExecuteCommandByID 4331