Skip to content

Commit f0e78f2

Browse files
Merge #7961
7961: add user docs for ssr assist r=JoshMcguigan a=JoshMcguigan @matklad This is a small follow up on #7874, adding user docs for the SSR assist functionality. Since most other assists aren't handled this way I wasn't sure exactly how we wanted to document this, so feel free to suggest alternatives. Co-authored-by: Josh Mcguigan <[email protected]>
2 parents b35559a + 40587b0 commit f0e78f2

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 from_comment;
6271
mod matching;

0 commit comments

Comments
 (0)