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. π
- first,
cdinto the base folder of your source code, like so:
cd ~/projects/myproject/src
- then make a
cscope.filesfile 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
- now build yourself a cscope database, like this:
cscope -cbR
- and a ctags database, like this:
ctags --fields=+i -n -R -L ./cscope.files
- run
cqmakedbto turn that cscope + ctags combo into an actual CodeQuery database. like this:
cqmakedb -s ./myproject.db -c ./cscope.out -t ./tags -p
- finally, open
myproject.dbusing 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 π
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
- ubuntu resolute: codequery 1.0.1+dfsg-1build1 Β· MPL-2
- ubuntu stonking: codequery 1.0.1+dfsg-1build1 Β· MPL-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms