format_file
Format SystemVerilog files according to lazyverilog.toml [format] rules; optionally format a specific line range or preview the diff before writing changes.
Instructions
Format a file with the project's lazyverilog.toml [format] rules. Give start_line/end_line (1-based, inclusive) to format only that range.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | SystemVerilog file path, absolute or relative to the workspace root | |
| preview | No | Return the diff without writing (default false) | |
| end_line | No | 1-based line number | |
| start_line | No | 1-based line number |