Format
formatApply consistent indentation, spacing, and line breaks to TypeScript code. Specify a range for targeted formatting or use the full file for complete formatting.
Instructions
Format a range of code according to TypeScript's formatting rules. Applies consistent indentation, spacing, and line breaks. Specify a range or use the full file length to format the entire file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File path (absolute or relative to cwd) | |
| line | Yes | Start line (1-based) | |
| offset | Yes | Start offset (1-based) | |
| endLine | Yes | End line (1-based) | |
| options | No | Formatting options | |
| preview | Yes | If true, return edits without applying | |
| endOffset | Yes | End offset (1-based) |