Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ctags setup on mac
# you have ctags but it does not work...
$ ctags -R --exclude=.git --exclude=log *
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
#you need to get new ctags, i recommend homebrew but anything will work
$ brew install ctags
#alias ctags if you used homebrew
$ alias ctags="`brew --prefix`/bin/ctags"
#try again!
ctags -R --exclude=.git --exclude=log *
#puts tags file into you .gitignore (probably global) and you're all set!
#PS. i was inspired to install ctags by https://workshops.thoughtbot.com/vim video by @r00k, thanks man!
@gooooloo

This comment has been minimized.

Copy link

commented May 31, 2014

Thanks man. It helps.

@wayneseymour

This comment has been minimized.

Copy link

commented Jun 10, 2014

This made my night! 👍

@hunterlodge

This comment has been minimized.

Copy link

commented Jun 15, 2014

great. it also helps me out. Thanks

@jpowell1218

This comment has been minimized.

Copy link

commented Oct 4, 2014

Much appreciated.

@HackRanger

This comment has been minimized.

Copy link

commented Oct 16, 2014

Thanks :)

@umangjeet

This comment has been minimized.

Copy link

commented Nov 7, 2014

Thanks for this one, was struggling with this one since long

@conorliv

This comment has been minimized.

Copy link

commented Mar 12, 2015

Just what I was looking for!

@yuyan2do

This comment has been minimized.

Copy link

commented Apr 22, 2015

Thanks :)

@balaclark

This comment has been minimized.

Copy link

commented Jun 12, 2015

thanks!

@JonShepChen

This comment has been minimized.

Copy link

commented Jul 6, 2015

Awesome, thanks

@wynnej1983

This comment has been minimized.

Copy link

commented Aug 28, 2015

thanks!

@rodlps22

This comment has been minimized.

Copy link

commented Oct 5, 2015

Thanks man!!! \o/

@tangyanlin

This comment has been minimized.

Copy link

commented Oct 19, 2015

Thanks :)

@oxpy

This comment has been minimized.

Copy link

commented Oct 24, 2015

Thanks!

@sumardi

This comment has been minimized.

Copy link

commented Nov 17, 2015

Awesome. Thanks!

@rporrasluc

This comment has been minimized.

Copy link

commented Dec 3, 2015

This was useful, thanks!

@hbweb

This comment has been minimized.

Copy link

commented Dec 17, 2015

Great stuff - appreciated this command

@ghost

This comment has been minimized.

Copy link

commented Jan 1, 2016

It helps! 👍

@yuqiandoudou

This comment has been minimized.

Copy link

commented Jan 15, 2016

谢谢了

@tonatiuh

This comment has been minimized.

Copy link

commented Feb 20, 2016

Thanks!

@gccpacman

This comment has been minimized.

Copy link

commented Mar 18, 2016

Works for me, thanks.

@ahcometrue

This comment has been minimized.

Copy link

commented Mar 25, 2016

Thanks!

@louis-she

This comment has been minimized.

Copy link

commented Apr 6, 2016

Thanks!

@ss998

This comment has been minimized.

Copy link

commented Apr 8, 2016

That's right, thanks!

@hvenables

This comment has been minimized.

Copy link

commented Apr 11, 2016

Thanks

@DmitryDD

This comment has been minimized.

Copy link

commented Apr 12, 2016

thx!

@David-99

This comment has been minimized.

Copy link

commented Apr 18, 2016

Thank you!

@minkikim89

This comment has been minimized.

Copy link

commented May 1, 2016

Thank you!

@tarlig

This comment has been minimized.

Copy link

commented May 1, 2016

Perfect! Thanks!

@viswamy

This comment has been minimized.

Copy link

commented May 31, 2016

Awesome..

@calam1

This comment has been minimized.

Copy link

commented Sep 13, 2016

Thanks!

@mingrammer

This comment has been minimized.

Copy link

commented Sep 13, 2016

Thanks!

@johnjhpark

This comment has been minimized.

Copy link

commented Sep 14, 2016

Great help! thanks!

@M-Kepler

This comment has been minimized.

Copy link

commented Oct 6, 2016

It works ,thank you

@surahmans

This comment has been minimized.

Copy link

commented Oct 27, 2016

Thank you! 👍

@bernstein7

This comment has been minimized.

Copy link

commented Nov 12, 2016

Awesome 👍

@chinmayv

This comment has been minimized.

Copy link

commented Nov 23, 2016

Thanks!

@sub-maxims

This comment has been minimized.

Copy link

commented Nov 23, 2016

Thanks man! 👍

@lukalopusina

This comment has been minimized.

Copy link

commented Dec 1, 2016

Thanks!

@fonlang

This comment has been minimized.

Copy link

commented Dec 29, 2016

no working in Vim.

@shuizhongyueming

This comment has been minimized.

Copy link

commented Jan 2, 2017

Thanks

@amritendu-mondal

This comment has been minimized.

Copy link

commented Feb 5, 2017

Thanks a lot. Also we need to add '-e' option to load tag table in emacs.

@luyangco

This comment has been minimized.

Copy link

commented Feb 10, 2017

Much appreciated, thank you.

@yongbol

This comment has been minimized.

Copy link

commented Feb 24, 2017

Thanks, so helpful

@alexismansilla

This comment has been minimized.

Copy link

commented Mar 8, 2017

Thanks.

@josfaber

This comment has been minimized.

Copy link

commented Mar 23, 2017

Top. Thanks!

@commandocamel

This comment has been minimized.

Copy link

commented Apr 9, 2017

🥇

@lyveng

This comment has been minimized.

Copy link

commented Jun 26, 2017

Thanks

@codercotton

This comment has been minimized.

Copy link

commented Jun 28, 2017

Still helping 6 years later, thanks!

@34code

This comment has been minimized.

Copy link

commented Jul 14, 2017

thanks!

@westonplatter

This comment has been minimized.

Copy link

commented Aug 31, 2017

Thank you

@dkeesey

This comment has been minimized.

Copy link

commented Oct 17, 2017

Thank you!

@jason316

This comment has been minimized.

Copy link

commented Nov 5, 2017

how to puts tags file into .gitignore? suppose I have create a global .gitignore file in my repository, and follow the instruction above already. I am new to command line scripting and I did google it but was unable to find an answer.

@luoxugeng

This comment has been minimized.

Copy link

commented Dec 7, 2017

3Q

@EdmundsEcho

This comment has been minimized.

Copy link

commented Dec 18, 2017

Thank you.

@Lazare-42

This comment has been minimized.

Copy link

commented Jan 2, 2018

Thank you :)

@mpise

This comment has been minimized.

Copy link

commented Jan 16, 2018

Thank you.

@acarist

This comment has been minimized.

Copy link

commented Feb 1, 2018

thank you. (i'm gonna put alias to bashrc or zshrc)

@zehn

This comment has been minimized.

Copy link

commented Feb 9, 2018

thank you

@sjsupersumit

This comment has been minimized.

Copy link

commented Feb 13, 2018

Thanks. This helped.

@timbuckley

This comment has been minimized.

Copy link

commented Feb 18, 2018

Thank you!

@movefast

This comment has been minimized.

Copy link

commented Feb 18, 2018

Thank you!

@sharik709

This comment has been minimized.

Copy link

commented Feb 21, 2018

Thanks

@joelturnbull

This comment has been minimized.

Copy link

commented May 18, 2018

Love you <3

@eunjicious

This comment has been minimized.

Copy link

commented Jul 19, 2018

Thanks!!

@TedaLIEz

This comment has been minimized.

Copy link

commented Feb 15, 2019

Thanks, this solves issues in VS code when using ctags to build symbols :)

@cstml

This comment has been minimized.

Copy link

commented Feb 23, 2019

Cheers dude!

@gharieni

This comment has been minimized.

Copy link

commented Mar 10, 2019

Thanks !

@udayawati

This comment has been minimized.

Copy link

commented Mar 19, 2019

Thanks

@ehrktia

This comment has been minimized.

Copy link

commented Apr 24, 2019

Helped me in 2019 nice tip thank you very much for the help

@domoench

This comment has been minimized.

Copy link

commented May 20, 2019

👍

@hdfelix

This comment has been minimized.

Copy link

commented Jun 19, 2019

Still helpful!

@nazgob

This comment has been minimized.

Copy link
Owner Author

commented Jun 20, 2019

Still helpful!

amazing, it's been 8 years! <3

@4slan

This comment has been minimized.

Copy link

commented Jul 28, 2019

Thanks!

@aaboutaka

This comment has been minimized.

Copy link

commented Aug 15, 2019

Thanks man!

@29sohil89

This comment has been minimized.

Copy link

commented Aug 16, 2019

Much Appreciated !! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.