4 ms·
You likely have Emacs on your system. Learn to use it. In the most trivial sense, as soon as you start editing C or C++ code (or any language), the syntax-awar
by cpr 17y ago
You likely have Emacs on your system. Learn to use it.
In the most trivial sense, as soon as you start editing C or C++ code (or any language), the syntax-aware highlighting/bracket matching is turned on, and you're off and running! All at no cost, other than some learning.
Emacs has a good built-in help/info system. Learn to use that first, and then use it at every step.
Emacs is really an operating system that happens to edit text. ;-)
- hga 17y agoSeconded: if you haven't tried EMACS yet, you need to. You can also catch things by hitting TAB, which tells the syntax aware language mode to properly indent what follows the cursor. If that isn't correct, you should be able to tell where the missed punctuation is. The auto newline feature is also great, it automatically indents after you hit newline (Enter); if that location is off you've missed something. Colors also help you see if you've missed closing a string, comment, etc. You can also compile inside a subshell and then have EMACS run you through each compilation error and the associated source code with next-error.