wiki:doc/editor/codejump

Version 1 (modified by iNode, 15 years ago) (diff)

initial commit

Introduction

For source code naviagation used file TAGS, in project directory. If there is no TAGS file navigation don't work and diaglogs don't show. You should create TAGS file before.

Prepare

To create TAGS file you should run command etags/ctags in the project directory like this:

ctags example

find . -type f -name "*.[ch]" | ctags --c-kinds=+p --fields=+iaS --extra=+q -e -L-

etags example

find . -type f -name "*.[ch]" | etags -l c --declarations -

exuberant-ctags example

ctags -e --language-force=C -R ./

All examples for C language code.

If you use another language - please read manual for etags/ctags tools.

Usage

For jump to definition (find tag) you need position cursor at end of the word and press M-Enter. You should press enter in dialog to go to. To go back press M-'-', to go forward - M-'='.