如何在Visual Studio上更改特定的关键字颜色?

时间:2023-01-14 22:48:39

So, I'm using this new scheme for Visual Studio that is called Solarized, but I want to change the brackets colors and also the conditionals color like If, While etc. The problem is that if I change the color in colors and fonts, it will also change the color for a lot other things. I was looking for a way to change the color for each individual character or keyword, if someone could help, that would be great! (I'm Working with c++ btw)

因此,我正在使用这个名为Solarized的Visual Studio新方案,但我想更改括号颜色以及条件颜色,如If,While等。问题是如果我改变颜色和字体的颜色,它也会改变许多其他东西的颜色。我正在寻找一种方法来改变每个角色或关键词的颜色,如果有人可以提供帮助,那就太棒了! (我正在使用c ++ btw)

2 个解决方案

#1


0  

As far as I know there is no such extension for that and there is no way in visual studio to do what you want. You would need to write some custom extension by yourself to be able to do that.

据我所知,没有这样的扩展,视觉工作室没有办法做你想要的。你需要自己编写一些自定义扩展才能做到这一点。

For that I can point you some useful links Some small extension that do colorization (it is C# as any extension in VS):

为此,我可以为您指出一些有用的链接一些做着色的小扩展(它是C#作为VS中的任何扩展):

https://github.com/hicknhack-software/semantic-colorizer

Guide how to write extensions for visual studio (also C#):

指导如何为visual studio(也是C#)编写扩展:

https://msdn.microsoft.com/en-us/library/dd885122.aspx

#2


0  

Found a plugin called Viasfora, which changes the bracket's colors, also I'm using Color theme editor for Visual Studio 2017.

找到了一个名为Viasfora的插件,它改变了支架的颜色,我也在使用Color Studio 2017的Color主题编辑器。

#1


0  

As far as I know there is no such extension for that and there is no way in visual studio to do what you want. You would need to write some custom extension by yourself to be able to do that.

据我所知,没有这样的扩展,视觉工作室没有办法做你想要的。你需要自己编写一些自定义扩展才能做到这一点。

For that I can point you some useful links Some small extension that do colorization (it is C# as any extension in VS):

为此,我可以为您指出一些有用的链接一些做着色的小扩展(它是C#作为VS中的任何扩展):

https://github.com/hicknhack-software/semantic-colorizer

Guide how to write extensions for visual studio (also C#):

指导如何为visual studio(也是C#)编写扩展:

https://msdn.microsoft.com/en-us/library/dd885122.aspx

#2


0  

Found a plugin called Viasfora, which changes the bracket's colors, also I'm using Color theme editor for Visual Studio 2017.

找到了一个名为Viasfora的插件,它改变了支架的颜色,我也在使用Color Studio 2017的Color主题编辑器。