Thread: Which is the best editor for C code etc?

  1. #1
    Fountain of knowledge.
    Join Date
    May 2006
    Posts
    794

    Which is the best editor for C code etc?

    Currently I am using Notepad++ which is OK but it only lets you split the screen vertically into two windows which is insufficent on occasioins.
    Ideally I would like as many windows as possible, all resizeable and moveable etc.
    I did write one to do that a while back but only for a unix text terminal, might still have the code lying around somewhere! So if I can't find anything better I might have to try and get
    it to work on windows <gulp>

    I am not using an IDE just dgcpp or whatever, I guess I could use a free IDE for editing and then compile normally. I am sure there is a really good one out there but i have not found it yet!!

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    The Windows folks around my office all seem to like VEDIT.

  3. #3
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    I use VC++.
    If they're UNIX files, I just connect to it with Samba and still use VC++.

  4. #4
    Fountain of knowledge.
    Join Date
    May 2006
    Posts
    794
    Quote Originally Posted by brewbuck View Post
    The Windows folks around my office all seem to like VEDIT.

    Got to be free though

  5. #5
    Fountain of knowledge.
    Join Date
    May 2006
    Posts
    794
    Quote Originally Posted by cpjust View Post
    I use VC++.
    If they're UNIX files, I just connect to it with Samba and still use VC++.
    Don't think that one is free either!!
    I should have said free in my first post!!

  6. #6
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by esbo View Post
    Don't think that one is free either!!
    I should have said free in my first post!!
    Of course it's free.
    Here's the 2005 express edition: http://msdn2.microsoft.com/en-us/express/aa700735.aspx

    and here are the 2008 express versions: http://www.microsoft.com/express/default.aspx

  7. #7
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    vi has auto-indent and syntax coloring, now that it's gvim.

    [/me runs very very very far away]
    Last edited by tabstop; 01-24-2008 at 11:54 PM. Reason: typo

  8. #8
    Fountain of knowledge.
    Join Date
    May 2006
    Posts
    794
    I quite like Notepad++ if I can forgive only having 2 windows, another little nuisance is that it always opens the same files you had opened before, whereas the one wot I wrote saved a different file configuration for each folder you opened it in, which was really useful.

    It could also do a vertical cut and paste which was really good!! So you could cut out a column, or a few columns and paste then into a different window
    Try doing that with a 'modern' editor!!

    It also did keyboard macros.
    It did not do where you can find the appropiate closing bracket to an opening bracket as notpad++ can, but I guess that would not have been too hard to put in

    Another useful feature of notepad was it would detect if a file had changed and ask if you wanted to reload it.

    I could also run unix commands in my windows and have the output pop up in a different window - nice

    And lots of other useful stuff!!

  9. #9
    Registered User
    Join Date
    Jan 2008
    Posts
    18
    For me Visual C++ 2005 express edition and gcc in cygwin is quite good.

  10. #10
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Visual Studio can do all you asked for and more.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    What about the various free IDE's such as code::blocks ?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  12. #12
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    The jEdit editor is my preferred code editor for all languages.

    And yes, it has rectangular selection
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  13. #13
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    I chose TextPad over Notepad++, so you might want to give that one a shot too.
    My best code is written with the delete key.

  14. #14
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    I think that some of your criticism of Notepad++ is unfounded.

    another little nuisance is that it always opens the same files you had opened before
    This can be changed in the settings (uncheck "Remember the current session for next launch" in Preferences -> MISC), but...

    saved a different file configuration for each folder you opened it in
    ... unfortunately there does not seem to be such an option for per-directory sessions.

    It could also do a vertical cut and paste which was really good!! So you could cut out a column, or a few columns and paste then into a different window
    Try doing that with a 'modern' editor!!
    Notepad++ can indeed do column-wise selection. Press the ALT key while selecting the text.

    It also did keyboard macros.
    This is also supported by Notepad++.

    Another useful feature of notepad was it would detect if a file had changed and ask if you wanted to reload it.
    This is also supported by Notepad++.

    That said, I suggest that you try out other text editors and IDEs to find out which suits you best. It may well turn out that you would like a particular IDE for C and C++ development but wish to use a text editor instead for a general purpose text editing tool, and this could just be what you started out with, i.e., Notepad++. Or perhaps you truly are inspired to write yet another text editor
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  15. #15
    Fountain of knowledge.
    Join Date
    May 2006
    Posts
    794
    Quote Originally Posted by tabstop View Post
    vi has auto-indent and syntax coloring, now that it's gvim.

    [/me runs very very very far away]
    I will have a look at that vi had somevery powerful command and was
    easy to use once you got used to it, I liked the uses of <escape> to switch
    modes and most of the commands were single letter, minimum keystrokes
    anyway, I copied that style for mine, but I only had pretty basic comands really.
    Of course you didn't usually have a mouse with vi, but then you didn't really need
    one.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extended ASCII Characters in an RTF Control
    By JustMax in forum C Programming
    Replies: 18
    Last Post: 04-03-2009, 08:20 PM
  2. Enforcing Machine Code Restrictions?
    By SMurf in forum Tech Board
    Replies: 21
    Last Post: 03-30-2009, 07:34 AM
  3. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  5. Replies: 0
    Last Post: 02-21-2002, 06:05 PM