gpt4 book ai didi

visual-studio-code - VSCode-更改 typescript 功能装饰器的颜色

转载 作者:行者123 更新时间:2023-12-03 16:40:44 27 4
gpt4 key购买 nike

有没有办法在VSCode中更 retrofit 饰器的语法突出显示颜色?举一个小例子:

     @HostListener('mouseenter')
onMouseEnter() {}
@HostListeneronMouseEnter都以相同的颜色突出显示。我想改变那个。
到目前为止,我尝试将 "editor.tokenColorCustomizations": { "functions" : "SomeColorHere"}}弄乱,但这会改变 以及装饰器和函数声明的

最佳答案

这是我的配置以按照TODO highlight的建议使用Mark,我排除了requireimport以避免干扰js和手写笔

quick note on the screenshot: the default italic style is from here, and the inline property is from here


"todohighlight.isEnable": true,
"todohighlight.isCaseSensitive": true,
"todohighlight.keywordsPattern": "@(?!require|import)[\\w-_.]*",
"todohighlight.defaultStyle": {
"color": "#1E88E5",
"backgroundColor": "0",
"fontWeight": "bold"
},
"todohighlight.include": [
"**/*.js",
"**/*.ts",
"**/*.vue",
],
"todohighlight.exclude": [
"**/node_modules/**",
"**/bower_components/**",
"**/dist/**",
"**/build/**",
"**/.vscode/**",
"**/.github/**",
"**/_output/**",
"**/*.min.*",
"**/*.map",
"**/.next/**"
],
"todohighlight.maxFilesForSearch": 5120,

关于visual-studio-code - VSCode-更改 typescript 功能装饰器的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50567907/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com