format_document
Get formatting edits for a document via LSP, returning a list of changes needed to conform to the language server's style rules. Use to preview formatting changes before applying them.
Instructions
Get formatting edits for an entire document via LSP. Returns TextEdit[] describing the changes needed to format the file according to the language server's style rules. The edits are returned for inspection — they are NOT applied automatically. Use this to see what formatting changes a formatter would make.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_size | No | ||
| file_path | Yes | ||
| language_id | No | ||
| insert_spaces | No |