Closed Pitometsu closed 7 years ago
We can use ctags:
~/.ctags
.find . -name '*.swift' -print0 | xargs -0 ctags -e
in your project root directory.
This will create an index file named TAGS
.
We need Exuberant Ctags or universal ctags. ctags
bundled with Emacs does not seems to work.
If you get Invalid character class name
error, replace [[:<:]]
and [[:>:]]
in the .ctags
file with \b
.M-.
in Swift code. Emacs may ask you where is TAGS
file.Alternatively, we may able to utilize SourceKit, SourceKitten, and/or SourceKittenDaemon to be smarter, but it will need a lot of work.
Confirm: universal ctags
works enough good. Many thanks!
Is it possible to achieve "jump to symbol declaration" in
swift-mode
?