Skip to content

Some dependencies in Rust "Cargo.toml" file are randomly displayed in silver color #1359

Closed Answered by equinusocio
ThibaultEbroussard asked this question in Issues
Discussion options

You must be logged in to vote

Hello @ThibaultEbroussard, VS Code by default doesn't support .toml files. You need an appropriate extension to get the proper highlight for toml files. Said that, how colors are applied highly depends on the extension used and how they apply syntax scopes. Here an example of how different extensions change the color syntax for toml files:

Even Better TOML extension with semantic highlight off:

Even Better TOML extension with semantic highlight on:

TOML Language Support extension with semantic highlight off:

TOML Language Support extension with semantic highlight on:

Vira Theme can only assign colors to syntax scopes, but where the scopes (and colors) are applied is handled by languag…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ThibaultEbroussard
Comment options

You must be logged in to vote
1 reply
@equinusocio
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Issues
Labels
waiting info Waiting for additional info
2 participants