Eclipse CDT color variables in editor

Hope this is a OK question to ask here. This is due to programming, so I thought it was better here than the superuser. Therefore, I use the CDT C ++ eclipse plugin. I know how to change the colors that the editor uses for certain things. But is there a way to make all variables be VARIOUS colors? For example, in KDevelop, it sets local and class variables in different colors, and in bold, class variables. Can I play this in a CDT?

+4
source share
1 answer

The Eclipse text editor offers a specific level of color customization for syntax.

You can check it out: Window> Preferences> C / C ++> Editor> Syntax Coloring

There are several elements that can be changed, including code, assembly, comments, preprocessor, and Doxygen.

In the "Code" section, you can change the color of certain types of variables, such as global variables, declarations of local variables, references to local variables and parameter variables.

But I do not think that it is able to change the color of each individual variable that you specified in the code. Perhaps you can find the Eclipse plugin for this.

+9
source

All Articles