diff options
| author | veetaha <veetaha2@gmail.com> | 2020-04-02 11:23:56 +0300 |
|---|---|---|
| committer | veetaha <veetaha2@gmail.com> | 2020-04-02 11:23:56 +0300 |
| commit | dd5e4d4870b4e59bc82d285c481bb6971d016912 (patch) | |
| tree | 672f5ebda7447c06ff28556515e41b13cef261e1 /docs | |
| parent | 036a8aee2af960428218cecd68ea2ea1813ab7f6 (diff) | |
| download | rust-dd5e4d4870b4e59bc82d285c481bb6971d016912.tar.gz rust-dd5e4d4870b4e59bc82d285c481bb6971d016912.zip | |
vscode: move docks about syntax tree to dev/README.md
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/dev/README.md | 10 | ||||
| -rw-r--r-- | docs/user/features.md | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/docs/dev/README.md b/docs/dev/README.md index 8d7e1801092..f230dc1db1a 100644 --- a/docs/dev/README.md +++ b/docs/dev/README.md @@ -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. + 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. + +  + # Profiling We have a built-in hierarchical profiler, you can enable it by using `RA_PROFILE` env-var: diff --git a/docs/user/features.md b/docs/user/features.md index 4cba6652944..56d2969fd43 100644 --- a/docs/user/features.md +++ b/docs/user/features.md @@ -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 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 Shows the full macro expansion of the macro at current cursor. |
