by shortrounddev2 · 1y ago · 0 comments
this.logger?.info('Some logs here');
So I apply 0.4 opacity to it so that it kind of fades into the background. It's still visible, but at a glance, the actual business logic code pops out at you. This is my configuration for anyone who wants to modify it: //In vscode settings.json:
"highlight.regexes": {
"((?:this\\.)?(?:_)?logger(?:\\?)?.(debug|error|info|warn)[^\\)]*\\)\\;)": {
"regexFlags": "gmi",
"decorations": [{
"opacity": "0.4"
}]
}
},
---[1] https://marketplace.visualstudio.com/items?itemName=fabiospa...
No comments yet.