Question:
The best c++ text editor?
Idyllic
2012-05-28 06:05:22 UTC
Hello,

Just wondering what is the nicest looking c++ text editor. I just want to have the colours distinguish the code nicely. Thanks.
Three answers:
husoski
2012-05-28 06:52:29 UTC
The best one that I've used is the one built into Visual Studio. I'd like to have something like that for programming in the free world. It's got colorful syntax highlighting, auto-indent, search and replace using regular expressions, like every other code editor, but it's syntax checking, code completion, context help are particularly nice.



The only thing missing, that I've seen and used in other IDEs is refactoring--particularly an intelligent renamer--and I've only seen that in IDEs for other languages. Notably Java, using NetBeans or Eclipse, but their C/C++ tools don't do refactoring either.



For Linux use, or for something that just pops up quicker than VS2008 on windows, I use Code::Blocks. It's C/C++ specific, works with a number of compilers, and runs everywhere. It's most glaring lack is a good code reformatter. It's got one, but it's got a choice of one style (something called "AStyle", that I don't care for) and has no controls at all.



For plain text under Windows, I use the shareware (yes, I paid for it!) TextPad, but there are free tools now like Notepad++ and Notepad2. Like the others (but not the original Notepad that they all take their names from) it does a good job of syntax highlighting for C/C++, and a number of other languages too. TextPad is not really a code editor, though, so there's no code completion or syntax help, and no code reformatting at all. It also does NOT support Unicode, so if you use much non-ASCII text in strings you might want to consider Notepad++ or Notepad2, which do.
jplatt39
2012-05-28 06:16:09 UTC
Xemacs -- for the X-Windows GUI which is shared between UNIX and Linux has that. So does gvim. There is a holy war going on between emacs and vi users. I'm in the vi group. But some emacs user claim their editor is the best for everything period and one of the creepy things about it is the extentions. I can't complain about the un-intuitive hard to use commands when my choice has :q! but give it a whirl why doncha.
anonymous
2012-05-28 06:12:20 UTC
If you are using windows, notepad++ is very nice.



If you are using a unix like system, vi or emacs can't be beat. You could also run notepad++ in wine.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...