Closed DevAlvaroF closed 6 months ago
This is due to bracket pair colorization. This is one of the reasons I recommend turning bracket pair colorization off. It adds visual noise where it doesn't really solve anything here. I can understand it helps in languages that are bracket heavy, but JavaScript generally doesn't have to be.
Hi!
I was working with the following piece of code (image to make the differences visible) and I found that the template literal has different colors inside of a class. This makes it really hard to read when it's all yellow.
However, if inside an if, the brackets change to green.
On the other hand, outside of the class method (as a global variable), color changes again