-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lost the different coloring for const variables. #405
Comments
Monokai Pro, like all themes, depends on syntax definitions to color different pieces of code. It could be that the syntax definitions have changed. You can check the definition of the current token via I think this is C++? I cannot spot a token difference between the first variable and the second one, so there's no way for themes to differentiate between the two. |
Thanks for the reply! I found out why.
I've been using clangd extension and disabled c/c++ intellisense
with "C_Cpp.intelliSenseEngine": "disabled", in my settings.json.
I recently had to re-installed vscode and this time I did not install the
c/c++ intellisense extension because I'm not using it anyway.
I installed the c/c++ intellisense extension to see if it fixes my issue
and now const variable's tokens are colored differently.
After installing c/c++ intellisense the non-const variable token is
`variable.other.reaadwrite.cpp` whereas const variable's token name is
`variable.other.constant.cpp`
…On Sun, Apr 21, 2024 at 12:37 AM Wimer Hazenberg ***@***.***> wrote:
Monokai Pro, like all themes, depends on syntax definitions to color
different pieces of code. It could be that the syntax definitions have
changed. You can check the definition of the current token via quick
panel > Developer: inspect editor tokens and scope.
I think this is C++? I cannot spot a token difference between the first
variable and the second one, so there's no way for themes to differentiate
between the two.
—
Reply to this email directly, view it on GitHub
<#405 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFRWGAX3TTL2KOEBI2KFNLY6NUD7AVCNFSM6AAAAABGPUF2HKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRXHE2DENZYGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
When using on vscode, the theme used to render const variable with blue-ish purple but now const variable coloring is the same as non-const variables. Could we have the different coloring scheme for const variables back?
The text was updated successfully, but these errors were encountered: