1

I've recently returned to using VSCode after a long break. It seems that after updating, the syntax highlighting colours have changed to this:

after

From this:

before

Does anybody know how to achieve the look in the second image? I really can't stand the inconsistent brace colouring. If this isn't a change made in updates and I'm doing something wrong, please let me know

2
  • those screenshots are not even of the same code. please compare the same code. Commented Jul 21, 2023 at 4:37
  • 1
    Hi, this question was answered over a year ago. See the accepted answer below Commented Jul 31, 2023 at 11:55

2 Answers 2

2

It appears you want to disable the bracket pairs colorization.

Here's a blog post from the VSCode team, talking about this new highlighting feature introduced recently : https://code.visualstudio.com/blogs/2021/09/29/bracket-pair-colorization

To do so, set the following settings to false :

"editor.bracketPairColorization.enabled": false,
"editor.guides.bracketPairs": false,
Sign up to request clarification or add additional context in comments.

Comments

0

I ran into this issue recently and I think the problem is caused by the Language Mode that VS Code used based on the language it detects.

I was using Auto Detect and I realized I should have been explicitly setting the language to Javascript using the button in the bottom right corner of the editor.

Bracket pair colorization will be preserved, but the syntax highlighting will change to what you expect.

Finally, Javascript seams to be the best, but Auto Detect may select Typescript or JSX where the Language mode is different.

Note: I think primitives, objects, and reserved words are hightlighted uniquely. It's helpful once you realize it.

I hope this helps someone else.

Helpful Images:

Javascript

Auto Detect

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.