Skip to content

Commit 3211086

Browse files
committed
Document VS Code setting needed for on-typing assists
1 parent 754b4c9 commit 3211086

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

crates/ide/src/typing.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ pub(crate) const TRIGGER_CHARS: &str = ".=>";
3939
//
4040
// - typing `let =` tries to smartly add `;` if `=` is followed by an existing expression
4141
// - 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+
// ----
4250
pub(crate) fn on_char_typed(
4351
db: &RootDatabase,
4452
position: FilePosition,

0 commit comments

Comments
 (0)