packages/kilo-docs/pages/code-with-ai/features/fast-edits.md
{% callout type="info" title="Default Setting" %} Fast Edits (using the "Enable editing through diffs" setting) is enabled by default in Kilo Code. You typically don't need to change these settings unless you encounter specific issues or want to experiment with different diff strategies. {% /callout %}
Kilo Code offers an advanced setting to change how it edits files, using diffs (differences) instead of rewriting entire files. Enabling this feature provides significant benefits.
Open Settings by clicking the gear icon {% codicon name="gear" /%} → Advanced
When Enable editing through diffs is checked:
{% image src="/docs/img/fast-edits/fast-edits-5.png" alt="Kilo Code settings showing Enable editing through diffs" width="500" /%}
{% callout type="note" title="Disabling Fast Edits" %}
If you uncheck Enable editing through diffs, Kilo will revert to writing the entire file content for every edit using the write_to_file tool, instead of applying targeted changes with apply_diff. This full-write approach is generally slower for modifying existing files and leads to higher token usage.
{% /callout %}
This slider controls how closely the code sections identified by the AI must match the actual code in your file before a change is applied.
{% image src="/docs/img/fast-edits/fast-edits-4.png" alt="Kilo Code settings showing Enable editing through diffs checkbox and Match precision slider" width="500" /%}
Use values below 100% with extreme caution. Lower precision might be necessary occasionally, but always review the proposed changes carefully.
Internally, this setting adjusts a fuzzyMatchThreshold used with algorithms like Levenshtein distance to compare code similarity.