如何自定义 textMateRules 以便在 VS Code 中的 #pragma 警告禁用和 #pragma 警告恢复语句中为代码着色?

How to customise the textMateRules in order to colour the code inside a #pragma warning disable and a #pragma warning restore statement in VS Code?

提问人:Ricardo 提问时间:7/7/2023 最后编辑:starballRicardo 更新时间:7/12/2023 访问量:23

问:

我发现很难通过阅读代码来判断将运行哪些代码,因为 #pragma 警告禁用和 #pragma 警告恢复语句之间的行不会改变颜色

所以我想知道是否可以使用 settings.json 中的 textMateRules 来做到这一点

我尝试更改颜色,但无法正确调节颜色变化

visual-studio-code 编辑器 设置 pragma dynamics-al

评论


答: 暂无答案