| 1 | == Introduction == |
| 2 | |
| 3 | For source code naviagation used file TAGS, in project directory. If there is no TAGS file navigation don't work and |
| 4 | diaglogs don't show. You should create TAGS file before. |
| 5 | |
| 6 | == Prepare == |
| 7 | |
| 8 | To create TAGS file you should run command etags/ctags in the project directory like this: |
| 9 | |
| 10 | '''ctags example''' |
| 11 | {{{ |
| 12 | find . -type f -name "*.[ch]" | ctags --c-kinds=+p --fields=+iaS --extra=+q -e -L- |
| 13 | }}} |
| 14 | |
| 15 | '''etags example''' |
| 16 | {{{ |
| 17 | find . -type f -name "*.[ch]" | etags -l c --declarations - |
| 18 | }}} |
| 19 | '''exuberant-ctags example''' |
| 20 | {{{ |
| 21 | ctags -e --language-force=C -R ./ |
| 22 | }}} |
| 23 | '''All examples for C language code'''. |
| 24 | |
| 25 | If you use another language - please read manual for etags/ctags tools. |
| 26 | |
| 27 | == Usage == |
| 28 | |
| 29 | For jump to definition (find tag) you need position cursor at end of the word and press M-Enter. |
| 30 | You should press enter in dialog to go to. To go back press M-'-', to go forward - M-'='. |
| 31 | |
| 32 | * See also [wiki:doc/editor/hotkeys Default hotkeys] |
| 33 | |