Skip to content

Commit f96fd40

Browse files
author
Jonas Schievink
committed
add docs
1 parent 99e9e52 commit f96fd40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/ide/src/typing.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@ pub(crate) const TRIGGER_CHARS: &str = ".=>{";
3939
// Some features trigger on typing certain characters:
4040
//
4141
// - typing `let =` tries to smartly add `;` if `=` is followed by an existing expression
42+
// - typing `=` between two expressions adds `;` when in statement position
43+
// - typing `=` to turn an assignment into an equality comparison removes `;` when in expression position
4244
// - typing `.` in a chain method call auto-indents
4345
// - typing `{` in front of an expression inserts a closing `}` after the expression
46+
// - typing `{` in a use item adds a closing `}` in the right place
4447
//
4548
// VS Code::
4649
//

0 commit comments

Comments
 (0)