Add bit about ctags; close #80
This commit is contained in:
parent
63eaf6b11c
commit
b859b33bbe
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue