lsp_format_preview
Preview formatting changes by generating a unified diff for a file, enabling review of modifications before applying them.
Instructions
Preview formatting changes for a file. Returns a unified diff without writing any files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabSize | No | Tab size. | |
| filePath | Yes | Absolute or workspace-relative path to the file. | |
| includeDiff | No | Whether to include a unified diff. | |
| insertSpaces | No | Use spaces instead of tabs. |