Source navigation

P

PAolo

Hi,

I'm reading a quite big program (written by someone else), and I need
to navigate the code, that is find the function definition by the
name, and possibly find the #defines for a given expression too.

I know that vim can do it with ctags, and emacs too, but I can't use
emacs, and I find vim is not user friendly enought for such a task. I
use Eclipse, but it seems to fail to find the function definition.
Can you suggest me a tool that can do the work, that is user friendly,
open source (or at least free) for Linux?

Thnx
PAolo
 
B

Bill Pursell

I'm reading a quite big program (written by someone else), and I need
to navigate the code, that is find the function definition by the
name, and possibly find the #defines for a given expression too.

I know that vim can do it with ctags, and emacs too, but I can't use
emacs, and I find vim is not user friendly enought for such a task. I
use Eclipse, but it seems to fail to find the function definition.
Can you suggest me a tool that can do the work, that is user friendly,
open source (or at least free) for Linux?

What exactly is it about vim's interface to ctags that
you don't like? Is ^] too difficult to type? I highly
recommend spending the time to learn vim--you'll find
the time you invest will pay off substantially in the
long run. When you say "can't use emacs", do you mean
it's not available to you, or you don't know how to
use it? If you plan to spend a substantial amount
of time coding, learn to use your editor and learn
it well. The tool I suggest is vim, as I find it
far more user friendly and intuitive than Eclipse.
I would guess that we have strongly differing definitions
on the phrase "user friendly". :)
 
M

Malcolm McLean

PAolo said:
I'm reading a quite big program (written by someone else), and I need
to navigate the code, that is find the function definition by the
name, and possibly find the #defines for a given expression too.

I know that vim can do it with ctags, and emacs too, but I can't use
emacs, and I find vim is not user friendly enought for such a task. I
use Eclipse, but it seems to fail to find the function definition.
Can you suggest me a tool that can do the work, that is user friendly,
open source (or at least free) for Linux?
Emacs will do everything you want, if you can be bothered to learn it. If
you can't, grep is a wonderful tool.
 
E

EventHelix.com

I'm reading a quite big program (written by someone else), and I need
to navigate the code, that is find the function definition by the
name, and possibly find the #defines for a given expression too.

I know that vim can do it with ctags, and emacs too, but I can't use
emacs, and I find vim is not user friendly enought for such a task. I
use Eclipse, but it seems to fail to find the function definition.
Can you suggest me a tool that can do the work, that is user friendly,
open source (or at least free) for Linux?

Doxygen might help. It will let you generate hyperlinked documentation
from the code.
 
J

Joachim Schmitz

PAolo said:
Hi,

I'm reading a quite big program (written by someone else), and I need
to navigate the code, that is find the function definition by the
name, and possibly find the #defines for a given expression too.

I know that vim can do it with ctags, and emacs too, but I can't use
emacs, and I find vim is not user friendly enought for such a task. I
use Eclipse, but it seems to fail to find the function definition.
Can you suggest me a tool that can do the work, that is user friendly,
open source (or at least free) for Linux?
Maybe cscope would do for you. Although, if you don't like vim, you might
not like cscope too..

Bye, Jojo
 
P

PAolo

I'm reading a quite big program (written by someone else), and I need
to navigate the code, that is find the function definition by the
name, and possibly find the #defines for a given expression too.
I know that vim can do it with ctags, and emacs too, but I can't use
emacs, and I find vim is not user friendly enought for such a task. I
use Eclipse, but it seems to fail to find the function definition.
Can you suggest me a tool that can do the work, that is user friendly,
open source (or at least free) for Linux?

What exactly is it about vim's interface to ctags that
you don't like? Is ^] too difficult to type? I highly
recommend spending the time to learn vim--you'll find
the time you invest will pay off substantially in the
long run. When you say "can't use emacs", do you mean
it's not available to you, or you don't know how to
use it? If you plan to spend a substantial amount
of time coding, learn to use your editor and learn
it well. The tool I suggest is vim, as I find it
far more user friendly and intuitive than Eclipse.
I would guess that we have strongly differing definitions
on the phrase "user friendly". :)

Well, I can use vim, and I like it, but I found messy to work with
many files and vim, but actually I never spent the time to learn
advanced stuff.

I'm not sure about that, but I think that vim hasn't the
autocompletion feature like Eclipse (based on API definition) and many
more tools, and this is very bad for big projects, and for other
languages. Moreover vim is quite nasty to use when writing Python,
because it hasn't a one click easy way to comment and uncomment
code... well vim is not perfect, as every editor.

Well for now, yes, I will use vim and ctrl + ], it seems the fastest
solution. But I don't like the idea to spend tens of hours learning an
editor.

Thnx all for response.

PAolo
 
P

PAolo

Maybe cscope would do for you. Although, if you don't like vim, you might
not like cscope too..

Bye, Jojo

Thnx for the advice, I'm trying to use kscope, that seems quite user
friendly -according to my definition :)

PAolo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top