Command Reference — Convert category — Format Document command

# Format Document command

## Summary

Formats the entire document using the Language Server Protocol.

## Description

Formats the entire document using the Language Server Protocol.

## How to Run

- Default Menu: None

- All Commands: Convert > Format Document

- Toolbar: None

- Status Bar: None

- Default Keyboard Shortcut: Ctrl+K, D

## Plug-in Command ID

    EEID_FORMAT_DOCUMENT (23244)

## Macros

### [JavaScript]

    editor.ExecuteCommandByID(23244);

### [VBScript]

    editor.ExecuteCommandByID 23244