Command Reference — View category — Ruler command

# Ruler command

## Summary

Shows or hides the ruler.

## Description

Shows or hides the ruler. By default, EmEditor does not display the ruler.

## How to Run

- Default Menu: View > Ruler

- All Commands: View > Ruler

- Toolbar:

- Status Bar: None

- Default Shortcut Key: None

## Plug-in Command ID

    EEID_VIEW_RULER (4531)

## Macros

### [JavaScript]

    editor.ExecuteCommandByID(4531);

### [VBScript]

    editor.ExecuteCommandByID 4531