diff --git a/crates/ide/src/typing.rs b/crates/ide/src/typing.rs index 899ce5f2652..94b91f04991 100644 --- a/crates/ide/src/typing.rs +++ b/crates/ide/src/typing.rs @@ -39,6 +39,14 @@ // // - typing `let =` tries to smartly add `;` if `=` is followed by an existing expression // - typing `.` in a chain method call auto-indents +// +// VS Code:: +// +// Add the following to `settings.json`: +// [source,json] +// ---- +// "editor.formatOnType": true, +// ---- pub(crate) fn on_char_typed( db: &RootDatabase, position: FilePosition,