Command Reference — Compare category — Compare command

# Compare command

## Summary

Compares the two most recently viewed documents without specifying options.

## Description

Compares the two most recently viewed documents without specifying options. EmEditor will prompt if the encodings of the two files are not the same, but will proceed with the comparison.

## How to Run

- Default Menu: Compare > Compare Direct

- All Commands: Compare > Compare Direct

- Toolbar:

- Status Bar: None

- Default Keyboard Shortcut: None

## Plug-in Command ID

    EEID_COMPARE_DIRECT (4492)

## Macros

### [JavaScript]

    editor.ExecuteCommandByID(4492);

### [VBScript]

    editor.ExecuteCommandByID 4492