【问题标题】:Visual studio change color of temp variable in LambdaVisual Studio 在 Lambda 中更改临时变量的颜色
【发布时间】:2021-12-18 18:22:44
【问题描述】:

使用我当前的配色方案,C# Lambda 表达式中的临时变量很难查看。如果可能的话,我需要改变颜色。

在这个例子中,我需要定位x的颜色:

var name = names.Where(x => x == "John");

【问题讨论】:

    标签: c# visual-studio colors themes


    【解决方案1】:

    在 Visual Studio 菜单中 Tools > Options,然后展开 Environment / Fonts and Colors。在列表中转到User Members - xyUser Types - xy 以更改所有颜色。您正在寻找User Members - Parameters

    image and doc here

    【讨论】:

    • 用户成员 - 参数做到了。谢谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-10-20
    • 1970-01-01
    • 1970-01-01
    • 2015-10-01
    • 2016-06-07
    • 2011-03-14
    相关资源
    最近更新 更多