Reputation: 16345
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?
Upvotes: 5
Views: 9006
Reputation: 5670
VS10x Editor View Enhancer (currently free beta).
VS10x Editor View Enhancer is a Visual Studio 2010 extension whose goal is to add new visual features to the built-in code editor. It currently features type and member definitions emphasizing, end-of-block details, clickable hotspots (C# and VB documents).
Upvotes: 1
Reputation: 942307
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.
Upvotes: 4
Reputation: 1367
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).
Upvotes: 2
Reputation: 11894
Impossible with default settings as far as I know. (And I sincerely hope I'm wrong)
Upvotes: 1
Reputation: 44832
Not in the default settings. It's probably possible to do it through add-ins, but you may have to write one yourself as I don't know of any that offer this functionality (although they may exist).
Upvotes: 1