mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-23 13:13:17 +00:00
Document VS Code setting needed for on-typing assists
This commit is contained in:
parent
754b4c900e
commit
321108673d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user