diff options
Diffstat (limited to 'docs/user/features.md')
-rw-r--r-- | docs/user/features.md | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/docs/user/features.md b/docs/user/features.md index 09a7f5a43..b44a3fce1 100644 --- a/docs/user/features.md +++ b/docs/user/features.md | |||
@@ -34,14 +34,15 @@ Some features trigger on typing certain characters: | |||
34 | - Enter inside comments automatically inserts `///` | 34 | - Enter inside comments automatically inserts `///` |
35 | - typing `.` in a chain method call auto-indents | 35 | - typing `.` in a chain method call auto-indents |
36 | 36 | ||
37 | ### Commands <kbd>ctrl+shift+p</kbd> | 37 | ### Extend Selection |
38 | |||
39 | #### Extend Selection | ||
40 | 38 | ||
41 | Extends the current selection to the encompassing syntactic construct | 39 | Extends the current selection to the encompassing syntactic construct |
42 | (expression, statement, item, module, etc). It works with multiple cursors. Do | 40 | (expression, statement, item, module, etc). It works with multiple cursors. This |
43 | bind this command to a key, it's super-useful! Expected to be upstreamed to LSP | 41 | is a relatively new feature of LSP: |
44 | soonish: https://github.com/Microsoft/language-server-protocol/issues/613 | 42 | https://github.com/Microsoft/language-server-protocol/issues/613, check your |
43 | editor's LSP library to see if this feature is supported. | ||
44 | |||
45 | ### Commands <kbd>ctrl+shift+p</kbd> | ||
45 | 46 | ||
46 | #### Run | 47 | #### Run |
47 | 48 | ||
@@ -76,6 +77,14 @@ Shows internal statistic about memory usage of rust-analyzer | |||
76 | 77 | ||
77 | Manually triggers GC | 78 | Manually triggers GC |
78 | 79 | ||
80 | #### Start Cargo Watch | ||
81 | |||
82 | Start `cargo watch` for live error highlighting. Will prompt to install if it's not already installed. | ||
83 | |||
84 | #### Stop Cargo Watch | ||
85 | |||
86 | Stop `cargo watch` | ||
87 | |||
79 | ### Code Actions (Assists) | 88 | ### Code Actions (Assists) |
80 | 89 | ||
81 | These are triggered in a particular context via light bulb. We use custom code on | 90 | These are triggered in a particular context via light bulb. We use custom code on |