How to enable semantic highlighting in VS Code (#tilPost)

Today I learned that the color theme I use (Yi color theme) does not support semantic syntax highlighting. Semantic what?
Semantic syntax highlighting makes sure your source code is not only beautifully colored, but that used the co…


This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis

Today I learned that the color theme I use (Yi color theme) does not support semantic syntax highlighting. Semantic what?

Semantic syntax highlighting makes sure your source code is not only beautifully colored, but that used the colors are logical, too.

After learning about this feature, I discovered that my editor's syntax highlighting is very confusing. Functions, methods, arguments and parameters change their color from line to line. I wonder how I never noticed this chaos!

But thanks to VS Code, you can enforce semantic highlighting using the editor.semanticHighlighting.enabled setting (read more in the VS Code docs) so that syntactic tokens don't change colors constantly! ?

I turned it on for now. Let's find out if code is easier to grasp or if my brain needs unlogical always changing colors. ?‍♂️


Reply to Stefan


This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis


Print Share Comment Cite Upload Translate Updates
APA

Stefan Judis | Sciencx (2021-09-16T22:00:00+00:00) How to enable semantic highlighting in VS Code (#tilPost). Retrieved from https://www.scien.cx/2021/09/16/how-to-enable-semantic-highlighting-in-vs-code-tilpost/

MLA
" » How to enable semantic highlighting in VS Code (#tilPost)." Stefan Judis | Sciencx - Thursday September 16, 2021, https://www.scien.cx/2021/09/16/how-to-enable-semantic-highlighting-in-vs-code-tilpost/
HARVARD
Stefan Judis | Sciencx Thursday September 16, 2021 » How to enable semantic highlighting in VS Code (#tilPost)., viewed ,<https://www.scien.cx/2021/09/16/how-to-enable-semantic-highlighting-in-vs-code-tilpost/>
VANCOUVER
Stefan Judis | Sciencx - » How to enable semantic highlighting in VS Code (#tilPost). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/09/16/how-to-enable-semantic-highlighting-in-vs-code-tilpost/
CHICAGO
" » How to enable semantic highlighting in VS Code (#tilPost)." Stefan Judis | Sciencx - Accessed . https://www.scien.cx/2021/09/16/how-to-enable-semantic-highlighting-in-vs-code-tilpost/
IEEE
" » How to enable semantic highlighting in VS Code (#tilPost)." Stefan Judis | Sciencx [Online]. Available: https://www.scien.cx/2021/09/16/how-to-enable-semantic-highlighting-in-vs-code-tilpost/. [Accessed: ]
rf:citation
» How to enable semantic highlighting in VS Code (#tilPost) | Stefan Judis | Sciencx | https://www.scien.cx/2021/09/16/how-to-enable-semantic-highlighting-in-vs-code-tilpost/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.