Hi guys,
the main reason of using ctags is the "jump to" function.
If you work with an up to date ctag list, you can mark your procedure and then press (F11 I guess is default, see menu "search-Find symbol"). So you jump to the definition of this program unit and so on.
So you can easily "cross" through your code without having to open this file and then that file and so on. You see ?
See also help file of UE by searching for "ctags".
Main disadvantage for me: It does NOT work on ftp-unix files/projects
By the way: If you dont want to use Ctags but want to jump to the definition of a procedure in your ONE LOCAL file, this macro may give you a try.
It does "shift-F2 in Visual Basic 6" and I called it gotoDefinition.
And, yes, it's not perfect but it fits my needs.
rem example
rem bla bla
procedure test
rem here we go
end test
rem bla moer code here
call test() <cursor on "test" then run macro. You will land in line 3 "procedure test"
rem bla
- Code: Select all
InsertMode
ColumnModeOff
HexOff
Clipboard 9
SelectWord
Copy
Bottom
Find Up "FUNCTION ^c"
IfNotFound
Bottom
Find Up "PROCEDURE ^c"
IfNotFound
Bottom
Find Up "int ^c"
IfNotFound
Bottom
Find Up "void ^c"
IfNotFound
Bottom
Find Up "sub ^c"
EndIf
EndIf
EndIf
EndIf
Clipboard 0