aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAramis Razzaghipour <[email protected]>2020-09-01 14:40:53 +0100
committerAramis Razzaghipour <[email protected]>2020-09-01 14:40:53 +0100
commit321108673dc64fa1746fe5be8865fc3bd5444433 (patch)
treea71e8c1d1be7e6079118cbf6c9e263aa8cb0dd31 /crates
parent754b4c900e843060b25acd63e5de1898eb66a59f (diff)
Document VS Code setting needed for on-typing assists
Diffstat (limited to 'crates')
-rw-r--r--crates/ide/src/typing.rs8
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// ----
42pub(crate) fn on_char_typed( 50pub(crate) fn on_char_typed(
43 db: &RootDatabase, 51 db: &RootDatabase,
44 position: FilePosition, 52 position: FilePosition,