Closed sharpchen closed 10 months ago
@fisheva Shall I include all colorization issue for csharp in one issue or separate them? I got some similar issue, may be annoying.
It is best to put similar issues in the same issue, but for already opened issues, just put them there. It's okay.
Ok, thank you. I just found so many issues of textmate rules for csharp, I think I'd better learn something about textmate rules, and maybe make a PR someday?
Of course you can! I don't write C# in my daily work. I am looking forward to your PR.
I wonder how should I test my changes in my machine? Build visx
in local and install it?
There are two methods for testing:
1)Find the installation folder of the VSCode plugin, locate the Eva Theme, directly edit the theme file in the Themes folder, and then restart VSCode to see the changes take effect. 2) Add the following text to the VSCode settings.json.
"editor.tokenColorCustomizations": {
//effect Eva Dark Italic Bold only
"[Eva Dark Italic Bold]": {
"textMateRules": [
{
"scope": "source.cs keyword.operator.expression",
"settings": {
"foreground": "#A78CFA",
"fontStyle": "italic bold"
},
},
],
},
//effect all themes
"textMateRules": [
{
"scope": "entity.name.type.parameter",
"settings": {
"foreground": "#FF6AB3",
"fontStyle": ""
},
},
],
}
Method 2nd doesn't need to restart VSCode, and the color modifications will override the first method.
I have fixed the C# syntax highlighting errors you mentioned today. Please upgrade Eva Theme to 2.4.6.
I am going to bed now, see you.
Actually, didn't fixed somehow. I will PR my changes tomorrow, includes issues I raise today.
target-typed
new
should be treated as regular keywordScreenshot
Eva Dark
Dark plus
Code Snippet
Notes