The Visual C++ editor has a great feature which is that it underlines errors with a red line while typing the code. So for example, if you are using a variable that is not declared, it will underline it with a red curly line. In this way, the programmer can resolve a lot of errors while typing and doesn't have to wait for compiling for noticing them.
Now my question is, is there any editor for Linux that has this great feature?
Kdevelop4 has some features you requested. For example, it will underline undeclared variables with yellow and underline files that cannot be found with red. But in my opinion currently it yields in this functionality to MSVS2010.
Vim
has a plugin, called c.vim
. It enables syntax checking for C and C++.
You can read more about it in the support file and this tutorial.
I think this is the closest thing I know to what you want, using an editor
.
If instead, by editor you include IDEs then, Netbeans
and Eclise
offer that functionality.
If you plan on using a "simple" editor, I can only recommend Clang Complete for vim.
The plugin uses Clang under the hood to provide real-time feedback on errors, plus auto-completion.
You need to download/install Clang separately.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With