Added mention of universal ctags
This commit is contained in:
parent
2b0a6b9709
commit
74fb5ab71b
|
|
@ -300,11 +300,19 @@ in other sections:
|
||||||
|
|
||||||
### ctags
|
### ctags
|
||||||
|
|
||||||
One of the challenges with rustc is that the RLS can't handle it, since it's a bootstrapping
|
One of the challenges with rustc is that the RLS can't handle it, since it's a
|
||||||
compiler. This makes code navigation difficult. One solution is to use `ctags`. The following
|
bootstrapping compiler. This makes code navigation difficult. One solution is to
|
||||||
script can be used to set it up: [https://github.com/nikomatsakis/rust-etags][etags].
|
use `ctags`.
|
||||||
|
|
||||||
CTAGS integrates into emacs and vim quite easily. The following can then be
|
`ctags` has a long history and several variants. Exhuberant CTags seems to be
|
||||||
|
quite commonly distributed but it does not have out-of-box Rust support. Some
|
||||||
|
distributions seem to use [Universal Ctags][utags], which is a maintained fork
|
||||||
|
and does have built-in Rust support.
|
||||||
|
|
||||||
|
The following script can be used to set up Exhuberant Ctags:
|
||||||
|
[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:
|
used to build and generate tags:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
|
|
@ -315,6 +323,7 @@ This allows you to do "jump-to-def" with whatever functions were around when
|
||||||
you last built, which is ridiculously useful.
|
you last built, which is ridiculously useful.
|
||||||
|
|
||||||
[etags]: https://github.com/nikomatsakis/rust-etags
|
[etags]: https://github.com/nikomatsakis/rust-etags
|
||||||
|
[utags]: https://github.com/universal-ctags/ctags
|
||||||
|
|
||||||
### Cleaning out build directories
|
### Cleaning out build directories
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue