Open oncipriani opened 1 week ago
@oncipriani Can you provide a screenshot? Can you check if the issue still repros with our C/C++ extension disabled? I am not reproing the issue for some reason.
Helo, @sean-mcmanus.
I tested with the C++ extension disabled and the issue still occurs. I guess it is not a problem with the extension, then. 😅
Here is a screenshot of the sample C source code in VS Code with the C++ extension enabled:
And here it is with the C++ extension disabled:
While I was taking the screenshots I found out what was causing the problem: font ligatures. Disabling font ligatures fixes the problem.
For reference, here is my entire settings.json
:
{
"editor.acceptSuggestionOnEnter": "off",
"editor.fontFamily": "'Cascadia Code', Consolas, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.renderWhitespace": "boundary",
"editor.rulers": [
{
"color": "#00ff8050",
"column": 80
},
{
"color": "#ff800050",
"column": 120
},
{
"color": "#ff000050",
"column": 160
}
],
"extensions.ignoreRecommendations": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"workbench.startupEditor": "none",
"workbench.sideBar.location": "right",
"C_Cpp.autoAddFileAssociations": false,
"C_Cpp.intelliSenseUpdateDelay": 3000
}
Environment
Bug Summary and Steps to Reproduce
Bug Summary: The closing parenthesis for a type cast to any pointer type gets the wrong color.
Steps to reproduce:
Expected behavior: The color of a closing parenthesis should be the same as the color of its matching opening parenthesis.
Configuration and Logs
Other Extensions
No response
Additional context
Sample C source: