Command Reference — Convert category — Format Selection command

# Format Selection command

## Summary

Formats the selection using the Language Server Protocol.

## Description

Formats the selection using the Language Server Protocol.

## How to Run

- Default Menu: Convert > Format

- All Commands: Convert > Format Selection

- Toolbar: None

- Status Bar: None

- Default Keyboard Shortcut: Ctrl+K, F

## Plug-in Command ID

    EEID_FORMAT_SELECTION (23245)

## Macros

### [JavaScript]

    editor.ExecuteCommandByID(23245);

### [VBScript]

    editor.ExecuteCommandByID 23245