Thread: good C++ editors/IDEs/addons with colors?

  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    188

    good C++ editors/IDEs/addons with colors?

    i think i've been babied way too much with c# and i miss having a lot of pretty colors available in the IDE.

    are there any good tools/addons/etc out there that could set up different colors between identifiers, classes/structs, stack variables, heap variables, etc.?

    thanks.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    What editor/IDE are you currently using for C++ programming? Perhaps it supports syntax highlighting with some option.
    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

  3. #3
    Registered User
    Join Date
    Aug 2008
    Posts
    188
    i'm using VS.NET 2003.

    i find it inadequate because identifiers, functions, objects are all the same color. i got used to it, but i'd be able to increase my productivity ten-fold if i could have more colors.

  4. #4
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Tools -> Options -> Fonts & Colors. There's quite a few categories.

  5. #5
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    You realize there's version 2008 now? If you can, you should definitely upgrade, because 2003 is old.
    (Express edition is free, as well.)
    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.

  6. #6
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    Quote Originally Posted by bling View Post
    stack variables, heap variables, etc.?
    All identifiers you'd use would be stack variables, not heap variables.

  7. #7
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Yeah I would just go for MSVC++ 2008 Express if I were you. Its design is very similar to what you are used to in C#. As tabstop pointed out you may want to look at some of the color options. I personally always tweak things a bit from the defaults (mostly so I can make all my IDE's have an identical formatting across the board). There are a few things that get color formatted in C# that aren't going to be altered in C++. But you will manage.

  8. #8
    Registered User
    Join Date
    Aug 2008
    Posts
    188
    unfortunately, 2008 isn't an option because at work we're still using 2003. the best by far i've found so far is slickedit, which is just phenomenal in terms of what you can do with it for editing. it's a real showstopper that it doesn't support the microsoft debugger though...

    i have 2008 at home, and even that i find to be unsatisfactory. for example, std::vector<int> foo, both vector and foo will be the same color no matter what.

  9. #9
    Registered User
    Join Date
    Aug 2008
    Posts
    188
    found some info...

    i can create a usertype.dat file and put it in the devenv.exe location. any string that matches things in the file gets colored to the 'user types'.

    too bad it's not dynamic. ah well...better than nothing.

  10. #10
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I've also found that Visual Assist X tend to help with colors, among other things. Not free, though, but I don't think it's illegal to reset the trial period.
    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
    Registered User
    Join Date
    Aug 2008
    Posts
    188
    thanks for the info!

    i also found a free addin on codeproject called king's tools. it's pretty neat...it iterates through every project in the solution and writes to a usertype.dat, and then forces a refresh of the user types.

    unfortunately, for whatever reason it VS can't see all of my types. i was thinking of writing a source code parser to extract everything class/struct definition manually. i'm also guessing i'm reinventing the wheel but i can't seem to find any projects on google, and i don't think i wanna go as far as looking in the GCC code :S. does anyone happen to know of a project that simply extracts classes/structs from source files?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question about atheists
    By gcn_zelda in forum A Brief History of Cprogramming.com
    Replies: 160
    Last Post: 08-11-2003, 11:50 AM
  2. Good site to learn about Prog. language concept?
    By Extrovert in forum Tech Board
    Replies: 5
    Last Post: 03-13-2003, 02:46 AM
  3. Good C programming practice
    By Juganoo in forum C Programming
    Replies: 4
    Last Post: 12-21-2002, 03:20 AM
  4. How good do you have to be to get into the business?
    By SmashBro in forum Game Programming
    Replies: 13
    Last Post: 12-16-2002, 01:36 AM
  5. Other GOOD FREE compilers
    By DarkViper in forum C++ Programming
    Replies: 8
    Last Post: 12-07-2002, 09:16 PM