Skip to content

Commit f90632c

Browse files
committed
docs: clarify relative indentation usage in edit_format_training.txt
1 parent dbf0a51 commit f90632c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cedarscript_integration_aider/cedarscript-raw/edit_format_training.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ OFFSET n: skips n matches, thus specifies the (n+1)-th match;
169169
<dd></dd>
170170
<dt>relative_indentation: RELATIVE INDENTATION <relative-indent-level></dt>
171171
<dd>The reference point for the horizontal positioning of <relative_indentation> is the <marker> in (<insert_clause> | <replace_region_clause>)</dd>
172+
<dd>0 means *THE SAME* as the reference point! Setting it to 0 means to set the indentation level of the new code to *THE SAME* as the reference point.</dd>
173+
<dd>Example: if the reference point is a given class, and you want to move a method from this class to make it a top-level function,
174+
you *MUST* set `RELATIVE INDENTATION` to 0, which means the moved method will have THE SAME indentation level as the reference point.</dd>
172175

173176
## Content Sources
174177

0 commit comments

Comments
 (0)