![](/img/trans.png)
[英]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.