Skip to content

Commit dd5e4d4

Browse files
committed
vscode: move docks about syntax tree to dev/README.md
1 parent 036a8ae commit dd5e4d4

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docs/dev/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,16 @@ There's also two VS Code commands which might be of interest:
155155

156156
* `Rust Analyzer: Syntax Tree` shows syntax tree of the current file/selection.
157157

158+
You can hover over syntax nodes in the opened text file to see the appropriate
159+
rust code that it refers to and the rust editor will also highlight the proper
160+
text range.
161+
162+
If you press <kbd>Ctrl</kbd> (i.e. trigger goto definition) in the inspected
163+
Rust source file the syntax tree read-only editor should scroll to and select the
164+
appropriate syntax node token.
165+
166+
![demo](https://user-images.githubusercontent.com/36276403/78225773-6636a480-74d3-11ea-9d9f-1c9d42da03b0.png)
167+
158168
# Profiling
159169

160170
We have a built-in hierarchical profiler, you can enable it by using `RA_PROFILE` env-var:

docs/user/features.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,6 @@ Join selected lines into one, smartly fixing up whitespace and trailing commas.
8181
Shows the parse tree of the current file. It exists mostly for debugging
8282
rust-analyzer itself.
8383

84-
You can hover over syntax nodes in the opened text file to see the appropriate
85-
rust code that it refers to and the rust editor will also highlight the proper
86-
text range.
87-
88-
If you press <kbd>Ctrl</kbd> (i.e. trigger goto definition) in the inspected
89-
Rust source file the syntax tree readonly editor should scroll to and select the
90-
appropriate syntax node token.
91-
92-
<img src="https://user-images.githubusercontent.com/36276403/78043783-7425e180-737c-11ea-8653-b02b773c5aa1.png" alt="demo" height="200px" >
93-
9484
#### Expand Macro Recursively
9585

9686
Shows the full macro expansion of the macro at current cursor.

0 commit comments

Comments
 (0)