Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm an OS X newbie. Other than setting up Emacs / Vim with ctags or cscope or both, are there alternatives to C++ code navigation of an existing code base? I used to use Source Insight on Windows and it worked for me fairly well. I know I can setup ctags or cscope but I was wondering if there is anything even better out there. The main functionality I am looking for is quickly find definition of variables and functions and places a function is being called.

share|improve this question
have you tried stack overflow for this one? – Robert S Ciaccio Nov 28 '10 at 21:11
@calavera, I was reluctant to post it on stackoverflow, but I did post on programmers and got one answer so far.… – grokus Nov 29 '10 at 4:57
I was going to suggest that you take a look at Xcode and the developer tools. Xcode will allow you to Jump To Definition and project wide search. I believe you have found your answer elsewhere tho. – Martín Marconcini Nov 29 '10 at 10:40
up vote 3 down vote accepted

Is Xcode not what you're looking for ? It's the Mac OS X IDE. It'sn't installed by default, but is present on your Mac OS X DVD.

share|improve this answer
Xcode might be just what I need. I have to wait and see. I tested ctags / cscope with vim as well and that could be enough as well. – grokus Nov 29 '10 at 16:54

TextMate and BBEdit have significant followings. I'm personally a big fan of Smultron even though development has stopped.

share|improve this answer

In Xcode:

quickly find definition of variables and functions

Right-click the variable name in question, and select "Jump to Definition".

Command (apple button) + double click on the variable is a shortcut for the same thing.

quickly find places a function is being called

Right-click the function name, and select "Find in Project" > "As Text".

share|improve this answer

I have used Eclipse for C++ programming on OSX.

Xcode will compile things but is not that good at dealing with C++ namespaces it is more of a C and Objectve-C tool

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.