How to generate etags for a huge project in Spacemacs on Windows
One of the first things I noticed when generating etags
for a large project was that a huge TAGS file was being created. It made tag operations (like searching) slow in Emacs.
We can create a file that contains file paths, e.g.:
and then pass that file to ctags.exe, using the -L argument:
ctags.exe -e -L inputfiles.txt -f outputtags.txt
Generate Emacs tags
-L <file> Pass in a file containing file paths (that will be the input files for ctags.exe)
-f <file> The output tags file
This allows us to specify each file that will be tagged. If the project is really huge, we can even create separate tags files. The command above shows how to create a tags file with a different output filename.
This content is part of a series