From 321108673dc64fa1746fe5be8865fc3bd5444433 Mon Sep 17 00:00:00 2001 From: Aramis Razzaghipour Date: Tue, 1 Sep 2020 23:40:53 +1000 Subject: Document VS Code setting needed for on-typing assists --- crates/ide/src/typing.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crates') 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 = ".=>"; // // - 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, -- cgit v1.2.3