What's your current C++ IDE on OS X?

If you’re using C++ on OS X, what IDE (or text editor) are you using at this time? And what would you say are its pros and cons?

I use Xcode. but I think it’s crap.

Pros:

  • It gets the job done.
  • It’s free.

Cons:

  • Awful UI. There are people who actually like this IDE, and for the life of me I cannot understand why. You get used to it though, and at least it’s far more stable than it used to be.

I also use Sublime Text 2 a ton, for any non source code file that’s plain text.

I use Ubuntu and Netbeans, Netbeans have OSX version too, check this link.

I use XCode. I also have most of the code open in a Text Editor for easier navigating/editing. I then flip back to XCode to debug or even build from the command-line and launch the simulator.

Thanks. Can you tell me which text editor is giving you that easier navigation/editing experience?

XCode, Sublime, Vim, BBEdit in that order for ObjC/Swift/C++ (remove XCode for everything else)

XCode (@qwpeoriu)
Do you use CMD+O to open to any file/method/field?
How about the Assistant View in split pane (open w/CMD+ALT+ENTER).
Combine them CMD+O, and then select into right split pane w/ALT+[select]
Jump to Definition/Declaration
Navigate to partner file (.h/.cpp or .vert/.frag)

XCode is not the best, and definitely has quirks, but if you learn some of the finer menu items and their keyboard shortcuts you can get around, navigate, and edit code pretty quickly.

I use SublimeText as text editor and for anything I want multiple cursors for. (I look into Atom/TextMate/VSCode//etc as replacement once in a while, but dev has become active again)

I use vim for remote editing, vimium (keyboard-driven chrome web browsing), complex transformations, and mass duplicate edits w/macros just because I’m used to it from server admin and remote web dev.

I use BBEdit for cross-project file contents grep searching, and as default editor because it auto-saves everything even untiled documents.

Definitely learn the super advanced settings with whichever editor you use. :smiley:

xcode (absolutely ok)
for simple text edit sublime

Sublime also auto saves my untitled documents which is great. When I relaunch it, they are all restored.

1 Like

Anyone take CLion for a drive on their C++ code?

Android Studio is essentially CLion. It is decent. I think it offers some refactoring support, though.

XCode’s analyze, AddressSanitizer, Instruments (profiling), and Debugging are all superior to command-line gdb/lldb, not sure how well the other Mac editors fair with regard to these things.

Ah yes I suppose most editors save untiled docs these days, I guess I got used to BBEdit long ago as the replacement for TextEdit, heh. I continually try to merge down to a single editor either with by using only SublimtText or Vim. Everytime I try I miss something in one of the others :frowning:

With the HandmadeHero crowd there’s Emacs (using VisualStudio or XCode for debugging) or the newly minted in-alpha 4Coder (c++ editor).

Handmade hero series is super awesome.

2 Likes

@Chroma
in fact CLion better than XCode, it is more friendly for developer

1 Like

Installed the demo again since it has been a few months (been trying it out since the first public version). This latest one is definitely much better than previous versions. The c++ refactoring and debugging are good, as expected. Android Studio does have the CLion c++ editing/refactoring/debugging support if you’re only writing/testing an android project (e.g. cocos2dx game).

CLion looks to be a very nice c++ IDE now. Only caveat is subscription price, but good tools are worth it.

Yeah same to me, i use sublime coz it’s faster and easier navigate