Skip to content

Commit 40587b0

Browse files
committed
add user docs for ssr assist
1 parent a9b1e5c commit 40587b0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

crates/ide_ssr/src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@
5757
//
5858
// | VS Code | **Rust Analyzer: Structural Search Replace**
5959
// |===
60+
//
61+
// Also available as an assist, by writing a comment containing the structural
62+
// search and replace rule. You will only see the assist if the comment can
63+
// be parsed as a valid structural search and replace rule.
64+
//
65+
// ```rust
66+
// // Place the cursor on the line below to see the assist 💡.
67+
// // foo($a, $b) ==>> ($a).foo($b)
68+
// ```
6069

6170
mod matching;
6271
mod nester;

0 commit comments

Comments
 (0)