Visual Studio Intellisense 颜色编码不起作用

2024-05-23

现在,在我的代码中,突然有些代码的颜色未编码为 Visual Studio 经典主题颜色。我不确定我的代码中是否存在错误,但是当我定义某些属性时,例如:

public class VideoEncodeTest : AndroidPowerTest
    {
        [CptfConfigAcceptedParametersClass]
        public VideoEncodeTestParameters VideoEncodeTestParameters { get; set; }

        [CptfConfigAcceptedParametersClass]
        public IBundleStrategy Strategy { get; set; }

}

我希望属性的类型、基类的名称和属性的名称至少以蓝色进行颜色编码。然而,事实并非如此,它是纯黑色的。这种情况只发生在这个特定的类中,而不会发生在其他类中。我不知道为什么以及可能是什么原因。

有任何想法吗?以往的经验?


我最近在更新 Visual Studio 2019 后遇到了这个问题。

I was able to fix it by heading to Tools > Options > Text Editor > C# > Advanced, and finally selecting Visual Studio 2019 in the Editor Color Scheme dropdown.

Screenshot for reference.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Visual Studio Intellisense 颜色编码不起作用 的相关文章