C++ Editor for mac...

Discussion in 'Mac Programming' started by gtx8800, Mar 17, 2009.

  1. macrumors newbie

    Joined:
    Mar 17, 2009
    #1
    heeiii...i am looking for c++ editor for mac..???

    what's do you recommend...???
     
  2. macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #2
    I personally recommend the terminal + vi.

    Others seem to like XCode (installed from your OS X DVD or downloaded or register and download from http://developer.apple.com/mac/), which is an IDE that supports C++ development.

    Others like editors like TextMate.

    It depends on what you like/need. Are you going to compile at the terminal with gcc? Do you need an IDE?

    The Eclipse IDE/"platform" is also available for OS X, and supports C++ development.

    -Lee
     
  3. macrumors newbie

    Joined:
    Mar 17, 2009
    #3
    emacs
     
  4. macrumors newbie

    Joined:
    Mar 8, 2009
    Location:
    Louisville, KY
    #4
    Komodo edit is a nice program if you like a nice interface. I've use it quite a while with perl, and it has some nice features.

    http://www.activestate.com/komodo_edit/

    p.s. It's open source and free. :) If you want some of the more advanced features you can get the pay version, but the free version works quite well.
     
  5. macrumors G4

    Joined:
    Jan 5, 2006
    Location:
    Redondo Beach, California
    #5
    I checked it out and did not notice support for C++.

    I use "nedit" about 9 hours a day. I like it because I need an editor that runs exactly the same on multiple platforms like Solaris, Linux and others. But if you are on the Mac exclusively then maybe you need to bother with an X11 program. But if you need multi-platform then X11 is the way to go. Nedit does syntax highlighting and multi-tab or split window editing
    www.nedit.org

    I've been using netbeans IDE for a Java project. It's not bad and I know it can also handle C and C++
    http://www.netbeans.org/features/cpp/

    You should spend an evening or so to learn vi. Only because it is universal and likey to be already installed on any non-Microsoft OS you will ever see.
     
  6. macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #6
    And hopefully any Microsoft OS used by a programmer... =)
    (sorry Visual Studio folk)

    -Lee
     
  7. macrumors newbie

    Joined:
    Mar 17, 2009
    #7
    Perhaps I should be more thoughtful and give a reason for my answer. As with vi, emacs will be likely be installed on any non-windows system you encounter. I would hope a developer would also have it on windows. Works from the terminal. Works from X11. Carbon and Cocoa versions available. Syntax highlighting. Automatic code formatting. Split buffer editing. Support for shell processes within editor. Great hooks for debuggers, compilers, version control systems, etc. Great support for virtually every language ever created. You could read your email or news or whatever from it. Extremely, no, ridiculously customizable.

    A side benefit is once you have gotten used to the somewhat odd keystroke controls for emacs, you will be pleasantly surprised when you discover many of them work in all mac applications.
     
  8. macrumors member

    Joined:
    Jan 31, 2005
    Location:
    Sweden
    #8
    I second that. Knowing the Emacs key bindings is extremely useful, given that on just about any system you will find an editor supporting those bindings. Not to mention any text control in Mac OS X (although the supported key bindings are a small subset of the Emacs key bindings).

    As for editors, I would recommend SubEthaEdit. Emacs key bindings, syntax coloring for lots of languages, and a nice collaborative editing feature in case you need that.

    And there is always XCode of course.
     
  9. macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #9
    I've tried so many times, but always find myself going back to Nano / Pico instead.

    Personally I would say Xcode or Smultron.
     
  10. macrumors 6502a

    Joined:
    Sep 3, 2005
    Location:
    Cramlington, UK
    #10
    Thumbs up for Xcode! I also find it useful for non Xcode projects too. I create a dummy empty, project and drag the root folder of the project into Xcode and select the recursive add as reference option. That way I can navigate all the files in the project really easily.

    The one thing I don't like about Xcode is the way it highlights compilation errors with the red marker things. After a particular bad session with a lot of typos and mistakes, the editor windows look like it's covered in blood.

    b e n
     

Share This Page