How to disable VS2019's syntax coloring for C++ and make it look like VS2017

流过昼夜 提交于 2020-12-15 04:59:30

问题


I'm a light theme user, and I guess that makes me unpopular, but I'm sure there are still some light theme users out there. I have switched to VS2019 and the light theme (called Blue Theme) was a nightmare. It turned out it was an issue and the solution can be found in this thread.

My other question is the C++ syntax coloring in VS2019. It's just too many colors and makes it really hard for the eyes (once again if using the light theme).

I have looked but don't know where can I disable this new fancy syntax coloring and go back to VS2017's syntax coloring in VS2019. Any tips?

Here's a screenshot of what I have in VS2019:

I think it's a bit too much. I don't wanna see purple, green, red and brown.

As per this Microsoft link there is supposed to be this Color Scheme and it can be set to VS2017, as per this screenshot:

But for some reason I don't have it and I have just updated it and this what my Text Editor->C/C++->View looks like:


回答1:


It looks the only way to solve this problem is to change the colors one by one. But you may ask, how do I come up with colors, I'm not a graphic/UI/UX designer? Here's how. You open the colors in VS2017 in Options->Fonts and Colors and select Text Editor in Show settings for:, and there when you scroll down you will see the colors for all C++ keywords.

That was Step 1. In Step 2 you go to the same dialog in VS2019, and one buy one change VS2019 settings to match those of VS2019. Having two monitors or one wide monitor helps.

Here's the screenshot:



来源:https://stackoverflow.com/questions/65228947/how-to-disable-vs2019s-syntax-coloring-for-c-and-make-it-look-like-vs2017

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!