diff --git a/ctags-cscope/cscope.txt b/ctags-cscope/cscope.txt new file mode 100644 index 0000000..12fca23 --- /dev/null +++ b/ctags-cscope/cscope.txt @@ -0,0 +1,19 @@ +To use csope: + +Use command: + + cscope -R + + In the project directory. + +It will open a interactive UI which we can use to search for +various attributes in C or C++. + +If we search for anything even for once. It will show the search +result in the csope interactive terminal + +To use cscope in vim + + Use command: + + :cs or :cscope diff --git a/ctags-cscope/ctags.txt b/ctags-cscope/ctags.txt new file mode 100644 index 0000000..e964420 --- /dev/null +++ b/ctags-cscope/ctags.txt @@ -0,0 +1,29 @@ +Ctags: +------- +They are text-based, source code-based indexing tools. + +How do they work? +* Point to the directory having the project. +* Create a database based on the project. +* Query through tools or text-editor. + +How to use to it? + +* Go to their codebase. +* Use command: + ctags -R + +* It will create a database file. The name of the + file created is 'tags' file. + +To use ctags in vim: + +* Use command: + + CTRL+] + + Before using the command hover the cursor over the + text which might be a function, variable, class, etc. + +* To go back to the file where you were previously present. + Use command: CTRL+t