[英]VS Code: How to refactor(rename variable) in an Angular template file?
[英]Angular - How to change variable's color in html file in VS Code?
我使用这个VS Code 插件,它为 angular html 模板添加了语法高亮。
为了进一步增强它的颜色,特别是紫色,您必须调整您的主题或编辑器textMateRules
设置。
在您的settings.json
:
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"expression.angular-interpolation",
"source.directive.angular"
],
"settings": {
"foreground": "purple" // or use your desired hex code
}
},
]
},
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.