所以,长话短说,我正在努力创造一个与我的工作心情相匹配的像样的主题.我通过"Microsoft Visual Studio Color Theme Designer"在两种方式上做到了这一点(通过图形用户界面菜单&通过调整.vs主题标记代码本身).

The problem is that whenever I select a string, or any code block, code selection occurs as if it were "under the code" rather than "above the code layer". Below you can see a couple of examples of how it should be and what happens. enter image description here

I'd like to point out! I made sure that in the theme code, the 'background' parameter of each object is set to "00000000", which should leave the objects with only Foreground color. enter image description here

当我 Select 任何代码块时,我希望看到所有层之上的 Select .

Like that: enter image description here

P.S. Also, just noticed that in the filetypes '.vstheme', '.json' everything works great, but somewhy in '.cs' filetype everything breaks down: enter image description here

link for a theme download & debug. link for a github to lurk for the code.

推荐答案

哈哈!我已经解决了!我做了一个关于它如何在所有其他众所周知的主题上工作的研究,所以我找到了几个GitHub .vstheme项目,并对代码进行了比较. 所有工作主题都将其对象的背景 colored颜色 设置为"CT_INVALID"类型.

解决方案:

  • Go to your .vstheme project and press 'View Code (F7)' enter image description here

  • Go to desired objects, change background's type of "CT_RAW" type to "CT_INVALID" enter image description here

结果:

  • Done! enter image description here

Csharp相关问答推荐

无法将blob发送到Azure -缺少HTTP标头异常

Blazor:计算值或保留为默认值

Plotly.NET访问互联网时出现异常

我可以 suppress 规则CS 9035一次吗?

不仅仅是一个简单的自定义按钮

实体核心框架--HasColumnType和HasPrecision有什么不同?

使用命令初始化可绑定属性

在FilePath中搜索一个词,并根据First Match从左到右提取文件路径

此反射有什么问题.是否发送值转换委托?

如何在Parall.ForEachAsync中使用CancerationTokenSource

如何在C#中实现非抛出`MinBy`?

如何在用户在线时限制令牌生成?

EFR32BG22 BLE在SPP模式下与PC(Windows 10)不连接

避免只读记录 struct 中的防御副本

在C#和HttpClient中使用REST API

使用C#代码和SQL SERVER中的相同证书签名会产生不同的结果

单位中快照的倾斜方向

将文本从剪贴板粘贴到RichTextBox时,新文本不会在RichTextBox ForeColor中着色

分别切换用于读取和写入的EF核心日志(log)

CsvHelper在第二次迭代时抛出System.ObjectDisposedException