CODEQUERY(1)

πŸ’– CODEQUERY(1) πŸ’–

okay bestie, welcome to the codequery manual page, section 1, and honestly? she's a whole vibe. this is the page about creating a codequery database, and we're gonna walk through it together like it's a group project that actually goes well for once. πŸ¦‹


✨ NAME ✨

codequery β€” create codequery database. that's it, that's the job. iconic. πŸ‘‘


🌸 SYNOPSIS 🌸

codequery

no flags, no arguments, no drama. she just is. πŸ’…


πŸŽ€ EXAMPLE πŸŽ€

bestie listen, this is the part where it all comes together. follow along, we're doing six steps and every single one of them matters, no skipping. πŸ™ˆ

  1. first, cd into the base folder of your source code, like so:
cd ~/projects/myproject/src
  1. then make a cscope.files file with all your source files listed inside it. (we're using java as the example here, but you do you πŸ“)
find . -iname "*.java" > ./cscope.files
  1. now build yourself a cscope database, like this:
cscope -cbR
  1. and a ctags database, like this:
ctags --fields=+i -n -R -L ./cscope.files
  1. run cqmakedb to turn that cscope + ctags combo into an actual CodeQuery database. like this:
cqmakedb -s ./myproject.db -c ./cscope.out -t ./tags -p
  1. finally, open myproject.db using the CodeQuery GUI tool by running this:
codequery

✨ heads up queen: wild card search (* and ?) is supported if Exact Match is switched off. or if you're feeling CLI-coded, use cqsearch, the CLI version of CodeQuery (type cqsearch -h for more info). your choice, both slay. πŸ”₯


Copyright 2013-2015 ruben2020 https://github.com/ruben2020/

Website: https://github.com/ruben2020/codequery


🌈 AUTHOR 🌈

This manual page was written by ChangZhuo Chen <czchen@debian.org> for the Debian GNU/Linux system (but may be used by others).


and that's the whole page, bestie. this version is dated 02/03/2026, it's CODEQUERY(1) all the way down, and you understood it. periodt. πŸ’–βœ¨πŸ«Ά

πŸ“¦ where this page comes from