简体   繁体   English

如何为 C++ 禁用 VS2019 的语法着色并使其看起来像 VS2017

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

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.我已经切换到 VS2019 并且轻主题(称为蓝色主题)是一场噩梦。 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.我的另一个问题是 VS2019 中的 C++ 语法着色。 It's just too many colors and makes it really hard for the eyes (once again if using the light theme). colors 太多了,让眼睛很难受(如果使用浅色主题,再一次)。

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.我看过但不知道在哪里可以禁用这个新的花哨语法着色和 go 回到 VS2017 在 VS2019 中的语法着色。 Any tips?有小费吗?

Here's a screenshot of what I have in VS2019:这是我在 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:根据此Microsoft 链接,应该有此配色方案,并且可以将其设置为 VS2017,根据此屏幕截图:

在此处输入图像描述

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:但由于某种原因,我没有它,我刚刚更新了它,这就是我的文本编辑器->C/C++->视图的样子:

在此处输入图像描述

It looks the only way to solve this problem is to change the colors one by one.看来解决这个问题的唯一办法就是把colors一一换掉。 But you may ask, how do I come up with colors, I'm not a graphic/UI/UX designer?但你可能会问,我不是图形/UI/UX 设计师,我怎么想出 colors? 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. 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.那是第 1 步。在第 2 步中,您将 go 转到 VS2019 中的相同对话框,然后购买一更改 VS2019 设置以匹配 VS2019 的设置。 Having two monitors or one wide monitor helps.拥有两台显示器或一台宽显示器会有所帮助。

Here's the screenshot:这是屏幕截图:

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM