mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
add docs
This commit is contained in:
parent
99e9e52fbc
commit
f96fd40104
1 changed files with 3 additions and 0 deletions
|
@ -39,8 +39,11 @@ pub(crate) const TRIGGER_CHARS: &str = ".=>{";
|
||||||
// Some features trigger on typing certain characters:
|
// Some features trigger on typing certain characters:
|
||||||
//
|
//
|
||||||
// - typing `let =` tries to smartly add `;` if `=` is followed by an existing expression
|
// - typing `let =` tries to smartly add `;` if `=` is followed by an existing expression
|
||||||
|
// - typing `=` between two expressions adds `;` when in statement position
|
||||||
|
// - typing `=` to turn an assignment into an equality comparison removes `;` when in expression position
|
||||||
// - typing `.` in a chain method call auto-indents
|
// - typing `.` in a chain method call auto-indents
|
||||||
// - typing `{` in front of an expression inserts a closing `}` after the expression
|
// - typing `{` in front of an expression inserts a closing `}` after the expression
|
||||||
|
// - typing `{` in a use item adds a closing `}` in the right place
|
||||||
//
|
//
|
||||||
// VS Code::
|
// VS Code::
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue