mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
vscode: move docks about syntax tree to dev/README.md
This commit is contained in:
parent
036a8aee2a
commit
dd5e4d4870
2 changed files with 10 additions and 10 deletions
|
@ -155,6 +155,16 @@ There's also two VS Code commands which might be of interest:
|
||||||
|
|
||||||
* `Rust Analyzer: Syntax Tree` shows syntax tree of the current file/selection.
|
* `Rust Analyzer: Syntax Tree` shows syntax tree of the current file/selection.
|
||||||
|
|
||||||
|
You can hover over syntax nodes in the opened text file to see the appropriate
|
||||||
|
rust code that it refers to and the rust editor will also highlight the proper
|
||||||
|
text range.
|
||||||
|
|
||||||
|
If you press <kbd>Ctrl</kbd> (i.e. trigger goto definition) in the inspected
|
||||||
|
Rust source file the syntax tree read-only editor should scroll to and select the
|
||||||
|
appropriate syntax node token.
|
||||||
|
|
||||||
|
![demo](https://user-images.githubusercontent.com/36276403/78225773-6636a480-74d3-11ea-9d9f-1c9d42da03b0.png)
|
||||||
|
|
||||||
# Profiling
|
# Profiling
|
||||||
|
|
||||||
We have a built-in hierarchical profiler, you can enable it by using `RA_PROFILE` env-var:
|
We have a built-in hierarchical profiler, you can enable it by using `RA_PROFILE` env-var:
|
||||||
|
|
|
@ -81,16 +81,6 @@ Join selected lines into one, smartly fixing up whitespace and trailing commas.
|
||||||
Shows the parse tree of the current file. It exists mostly for debugging
|
Shows the parse tree of the current file. It exists mostly for debugging
|
||||||
rust-analyzer itself.
|
rust-analyzer itself.
|
||||||
|
|
||||||
You can hover over syntax nodes in the opened text file to see the appropriate
|
|
||||||
rust code that it refers to and the rust editor will also highlight the proper
|
|
||||||
text range.
|
|
||||||
|
|
||||||
If you press <kbd>Ctrl</kbd> (i.e. trigger goto definition) in the inspected
|
|
||||||
Rust source file the syntax tree readonly editor should scroll to and select the
|
|
||||||
appropriate syntax node token.
|
|
||||||
|
|
||||||
<img src="https://user-images.githubusercontent.com/36276403/78043783-7425e180-737c-11ea-8653-b02b773c5aa1.png" alt="demo" height="200px" >
|
|
||||||
|
|
||||||
#### Expand Macro Recursively
|
#### Expand Macro Recursively
|
||||||
|
|
||||||
Shows the full macro expansion of the macro at current cursor.
|
Shows the full macro expansion of the macro at current cursor.
|
||||||
|
|
Loading…
Reference in a new issue