ctags in Rails project
If you're like me, then you program Rails and you use ctags
to navigate your project.
But, you don't want your tags to include only what's in your own project. Sometimes you want to follow a call into a gem, or into Rails itself.
Well, alias this my friends:
ctags -R . $(bundle list --paths)
That's right, using Bundler you can get a list of all the paths to the gems that you're using in your project, and you can include them in the tags that you generate for your project.
FWIW, I also use the -f .tags
option so I end up with a hidden .tags
file.
Written by Jason King
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#