Uses dashes to underline the code you want to select.
Uses vertical lines to mark the beginning and end of a code block.
Uses a caret (^) to specify an exact position in the code.
Indicates that the selected code is optional. The query will match whether or not this code exists.
Matches based on code structure rather than content. By default, all block annotations have this modifier.
Enforces strict content matching (opposite of 'any'). The code must match exactly as specified.
Matches any type of node in the abstract syntax tree, regardless of its structure or content.
Requires the code to match the exact position in the source file, including whitespace and formatting.
Ensures code elements are adjacent. StickPrevious requires the element to follow the previous match, while StickNext requires it to precede the next match.
Uses regular expressions to match code content. Allows for flexible pattern matching within code blocks. See syntax
Specifies LLM-based code transformations. Use \ to escape brackets if needed. Allows for intelligent code modifications.