gpt4 book ai didi

How to get back to usual font colors with Visual Studio 2022?(如何使用VisualStudio2022恢复正常的字体颜色?)

转载 作者:bug小助手 更新时间:2023-10-28 10:59:04 24 4
gpt4 key购买 nike



Sorry but it's turning me crazy,
I just installed on my new computer Visual Studio 2022 and from here impossible to get back to the usual font colors.

对不起,这让我抓狂,我刚刚在我的新电脑上安装了Visual Studio 2022,从这里不可能恢复到通常的字体颜色。


I installed precedent versions, new one, re-installed again, I searched for extensions or themes or whatever. I didn't find a clear answer via google so I ask for your help here.
How I get back to this :

我安装了以前的版本,新的版本,重新安装,我搜索扩展或主题或其他任何东西。我没有通过谷歌找到明确的答案,所以我在这里寻求你的帮助。我是如何回到这个问题上的:


good colors

好的颜色


Now with Visual Studio 2022 freshly installed without any extensions I have this :

现在,在没有任何扩展的情况下新安装了Visual Studio 2022,我有了以下内容:


bad colors

糟糕的颜色


I checked the Fonts and Colors options but do I really need to customize all the colors manually ?
it sounds crazy.

我检查了字体和颜色选项,但我真的需要手动自定义所有颜色吗?这听起来很疯狂。


Thanks a lot for the help.
Bests.

非常感谢你的帮助。最好的。


更多回答

Interesting... I think its something obvious that you/we are missing. How are you opening this file? What is the file extension? I see the first screenshot seems to be some sort of Unity file. I think Visual Studio has a Unity component that you can install when first installing Visual Studio. You can check if you installed that via the Visual Studio Installer application and install it if you need to.

有意思.。我认为你/我们显然遗漏了一些东西。您将如何打开此文件?文件扩展名是什么?我看到第一个屏幕截图似乎是某种类型的Unity文件。我认为Visual Studio有一个Unity组件,您可以在第一次安装时安装。您可以检查是否通过Visual Studio安装程序安装了该应用程序,并在需要时进行安装。

Thanks for your reply, the file is the same with 3 months difference on two different computer. It’s a .cs file opened via Unity in both case . When I installed VS on my new computer I installed the Unity C# library it asked for, but yes there is something I should miss…

感谢您的回复,文件是相同的,在两台不同的计算机上有3个月的差异。这两种情况下都是通过Unity打开的.cs文件。当我在我的新电脑上安装VS时,我安装了它要求的Unity C#库,但是是的,我应该错过一些东西。

Also, important update : It works perfectly fine with Visual Studio Code. I completely uninstalled Visual Studio Community 2022 and re-installed it again and.... it doesn't work. So from here I can use Visual Studio Code but I would like to get VS Community working anyway.

此外,重要的更新:它可以与Visual Studio代码完美地配合使用。我完全卸载了Visual Studio Community 2022,并重新安装了它,然后...这不管用。因此,从这里开始,我可以使用Visual Studio代码,但我还是想让VS社区正常工作。

I updated the images with good and bad colors in my original post so you can see more clearly how it's different.

我在最初的帖子中用好的和不好的颜色更新了图片,这样你就可以更清楚地看到它的不同之处。

SOLVED I was missing 'Regenerate Project Files' in Unity Preferences while choosing VS 2022 as .cs opener. Apprently CodeLens and IntelliCode couldn't recognize references, structures etc without clicking this option. Thanks.

解决了当我选择VS 2022作为.cs的开场白时,在Unity首选项中缺少‘Regenerate Project Files’的问题。显然,如果不点击这个选项,CodeLens和IntelliCode就无法识别引用、结构等。谢谢。

优秀答案推荐
更多回答

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com