vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Inconsistent Highlighting and Alignment for Macro Definitions in C/C++ Code Formatting

Open iCandang opened this issue 5 months ago • 1 comments
trafficstars

Feature Request

When formatting C/C++ code, the highlighting of macro definitions is often problematic. I would like the alignment of macro definitions to be consistent with the log format, where the macro definition declarations are on one side and the corresponding variables or values are aligned on the other side. Additionally, it would be ideal if the content that the macro definition points to (e.g., another macro definition) is not highlighted with the same color as the macro itself.

iCandang avatar Jun 10 '25 02:06 iCandang

@iCandang Are you formatting with clangFormat or vcFormat? What do you mean by "highlighting"? Is this with lexical or semantic colorization, i.e. do you see the same issue with the C/C++ disabled? What is "the log format"? Can you provide a screenshot of the issue?

sean-mcmanus avatar Jun 10 '25 19:06 sean-mcmanus

This issue has been closed because it needs more information and has not had recent activity.

github-actions[bot] avatar Jul 11 '25 11:07 github-actions[bot]

@iCandang what is you problem,

heartacker avatar Jul 12 '25 06:07 heartacker