Command Reference — Edit category — Delete Spaces at End of Lines command

# Delete Spaces at End of Lines command

## Summary

Deletes extra spaces at the end of all lines in current document.

## Description

Deletes any whitespace characters between the last non-whitespace character and newline character for all lines in the current document.

## How to Run

- Default Menu: None

- All Commands: Edit > Delete > Delete Spaces at End of Lines

- Toolbar: None

- Status Bar: None

- Default Keyboard Shortcut: None

## Plug-in Command ID

    EEID_TRIM_RIGHT (4278)

## Macros

### [JavaScript]

    editor.ExecuteCommandByID(4278);

### [VBScript]

    editor.ExecuteCommandByID 4278