如何禁用 VS2019 的 C++ 语法着色并使其看起来像 VS2017 [英] How to disable VS2019's syntax coloring for C++ and make it look like VS2017

查看:88
本文介绍了如何禁用 VS2019 的 C++ 语法着色并使其看起来像 VS2017的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个轻主题用户,我想这让我不受欢迎,但我确信仍然有一些轻主题用户.我已经切换到 VS2019 并且浅色主题(称为蓝色主题)是一场噩梦.原来这是一个问题,解决方案可以在

我觉得有点过分了.我不想看到紫色、绿色、红色和棕色.

根据此

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

解决方案

看来解决这个问题的唯一办法就是一一改变颜色.但是你可能会问,我怎么想出颜色,我不是图形/UI/UX设计师?就是这样.您在 Options->Fonts and Colors 中打开 VS2017 中的颜色,然后在 Show settings for: 中选择 Text Editor,然后滚动向下,您将看到所有 C++ 关键字的颜色.

那是第 1 步.在第 2 步中,您将转到 VS2019 中的相同对话框,然后买一更改 VS2019 设置以匹配 VS2019 的设置.拥有两台显示器或一台宽显示器会有所帮助.

截图如下:

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:

解决方案

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:

这篇关于如何禁用 VS2019 的 C++ 语法着色并使其看起来像 VS2017的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆