Add bit about ctags; close #80

This commit is contained in:
Mark Mansi 2018-06-04 20:40:23 -05:00 committed by Who? Me?!
parent 63eaf6b11c
commit b859b33bbe
1 changed files with 21 additions and 3 deletions

View File

@ -155,3 +155,21 @@ in other sections:
more details):
- `./x.py test --stage 1 src/libstd` runs the `#[test]` tests from libstd
- `./x.py test --stage 1 src/test/run-pass` runs the `run-pass` test suite
### ctags
One of the challenges with rustc is that the RLS can't handle it, making code
navigation difficult. One solution is to use `ctags`. The following script can
be used to set it up: [https://github.com/nikomatsakis/rust-etags][etags].
CTAGS integrates into emacs and vim quite easily. The following can then be
used to build and generate tags:
```
rust-ctags src/lib* && ./x.py build <something>
```
This allows you to do "jump-to-def" with whatever functions were around when
you last built, which is ridiculously useful.
[etags]: https://github.com/nikomatsakis/rust-etags