Is it possible to generate a ctags file for CoffeeScript in vim/MacVim?
How do I generate ctags for CoffeeScript?
Asked Answered
This should really be tagged coffeescript, not coffee, n'est pas? :) –
Absa
I had originally meant to tag it coffeescript but it seems there was a hiccup. –
Alvardo
There is no native support for Exuberant ctags, but if you just want to gather some variable and function definitions, you can create your own rules.
Here is an example that appeared in a google search.
I released a tool which gives you what you need - coffeeTags
Do you think it's possible to use with CTags plugin for Sublime Text 2 (github.com/SublimeText/CTags)? I can't get it working together. Probably there is some format differencies? –
Kinswoman
@Kinswoman - sorry for ignoring your comment! SO's notification system is still a bit of a mystery ;-) As for your question:
extra_tag_files
option gives you the ability to specify additional ctags file. So lets say you set it to 'coffeescript.tags' and then you can use CoffeeTags to generate CoffeeScript tags with coffeetags -R . > coffeescript.tags
. I don't use ST2 myself to it's a bit of a guess work. Let me know if that works and I will include this in CoffeeTag's readme –
Satirical @Kinswoman - yes, check this gist. –
Tercel
I think it's not more relevant since ST3 has its own code analysis which works quite good for CS as well. But thanks! –
Kinswoman
There is no native support for Exuberant ctags, but if you just want to gather some variable and function definitions, you can create your own rules.
Here is an example that appeared in a google search.
© 2022 - 2024 — McMap. All rights reserved.