diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ide/src/typing.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/ide/src/typing.rs b/crates/ide/src/typing.rs index 899ce5f26..94b91f049 100644 --- a/crates/ide/src/typing.rs +++ b/crates/ide/src/typing.rs | |||
@@ -39,6 +39,14 @@ pub(crate) const TRIGGER_CHARS: &str = ".=>"; | |||
39 | // | 39 | // |
40 | // - typing `let =` tries to smartly add `;` if `=` is followed by an existing expression | 40 | // - typing `let =` tries to smartly add `;` if `=` is followed by an existing expression |
41 | // - typing `.` in a chain method call auto-indents | 41 | // - typing `.` in a chain method call auto-indents |
42 | // | ||
43 | // VS Code:: | ||
44 | // | ||
45 | // Add the following to `settings.json`: | ||
46 | // [source,json] | ||
47 | // ---- | ||
48 | // "editor.formatOnType": true, | ||
49 | // ---- | ||
42 | pub(crate) fn on_char_typed( | 50 | pub(crate) fn on_char_typed( |
43 | db: &RootDatabase, | 51 | db: &RootDatabase, |
44 | position: FilePosition, | 52 | position: FilePosition, |