[KongchangAI]
ConceptSEARCH/REPLACE 块 / diff 格式

SEARCH/REPLACE

A code-editing format used by Aider that describes content to be replaced and its replacement through SEARCH/REPLACE marker blocks. Similar to merge-conflict markers, it is used to make precise modifications to code segments.

Timeline (last 90 days)

Oct 18

Aider's diff format uses SEARCH/REPLACE blocks: the model outputs a <<<<<<< SEARCH section (the original code to find) and a >>>>>>> REPLACE section (the replacement code), and the applier locates the SEARCH content in the file and replaces it wholesale with the REPLACE content, relying on no line numbers and not requiring the full file to be output.

Unverified50%

All Facts (1)

Source Articles