I know that you can change text editor colours but all the things I want to customized in one group "Identifiers".
Is there a way to break that group into "Variables","Constants","Functions" and things like that so I can customize colours for those things separately?
Here's your quick reference to the colors and icons in the editor window's right-hand margin: Yellow: The line has been changed but not yet saved. Green: The line has been changed and saved. Orange: The line has been changed, saved, and the change undone. Little square dots in the middle of the margin: Break points.
You can edit colors in Options -> Environment -> Fonts and Colors -> Text Editor -> "Semantic *****".
Current syntax coloring options are based on what can be easily recognized by the kind of rules a lexer uses. Coloring functional identifiers requires much more, the editor would actually have to parse the statements. That's an iffy proposition while you are entering code into the editor, especially when that code contains bad syntax or typing mistakes. Some of this is actually done by the IntelliSense parser but that's a feature that is disjoint from the basic editor implementation.
Changes are coming in VS2010, its extensibility model adds support for custom syntax highlighting through MEF plug-ins. To what degree this will be used for default coloring of a specific language isn't that clear to me. I don't see any hard promises yet.
This can be achieved via different add-ins. Good commercial example is ReSharper.
Also there's syntax highlighting framework that allows to analyze source code and provide custom styles for any lexical elements (more on MSDN).
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