From 2b956fd3a83313cee37ff179eae843bc88dd572a Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 9 Oct 2018 16:00:20 +0300 Subject: Add on-enter handler Now, typing doc comments is much more pleasant --- editors/README.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'editors/README.md') diff --git a/editors/README.md b/editors/README.md index 798c08581..a39ec62b0 100644 --- a/editors/README.md +++ b/editors/README.md @@ -16,7 +16,7 @@ It's better to remove existing Rust plugins to avoid interference. * syntax highlighting (LSP does not have API for it, so impl is hacky and sometimes fall-backs to the horrible built-in highlighting) - + * **Go to symbol in workspace** (`ctrl+t`) - `#Foo` searches for `Foo` type in the current workspace - `#foo#` searches for `foo` function in the current workspace @@ -44,9 +44,24 @@ It's better to remove existing Rust plugins to avoid interference. outside of the test function, this re-runs the last test. Do bind this to a shortcut! +* Typing assists + - typing `let =` tries to smartly add `;` if `=` is followed by an existing expression. + - Enter inside comments continues comment (`<|>` signifies cursor position): + +``` +/// Docs<|> +fn foo() {} +``` + +``` +/// Docs +/// <|> +fn foo() {} +``` + * code actions (use `ctrl+.` to activate). -`<|>` signifies cursor position + - Flip `,` -- cgit v1.2.3