From 3cc2695007833db22f41052fe3eff337be901ca8 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Thu, 16 Jun 2022 20:31:45 -0700 Subject: [PATCH] made a small note on how to use the ctags program --- how_to_use_ctags.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 how_to_use_ctags.txt diff --git a/how_to_use_ctags.txt b/how_to_use_ctags.txt new file mode 100644 index 00000000..7194e055 --- /dev/null +++ b/how_to_use_ctags.txt @@ -0,0 +1,11 @@ +ctags is a great little tool that allows you to traverse large code bases to see outside files that define variables/funcitons that are imported into our C programs. + +(install the ctags program) + +within our project with multiple .h and .c files, invoke ctags: + +ctags + +Which will create a txt file called tags + +This will be referenced when we need to use it in the project. From our text editor we can then invoke CTRL+} or CTRL+] to invoke ctags, which will then take us to the file and the line where that variable was first created (extremely useful!).