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

Suggestion: Pre-Processor Directives Improvement

Open xidianzhangjun opened this issue 7 years ago • 3 comments

Type: LanguageService

Hi, Like the code below, #if AMACRO do_something_A(); #else do_something_B(); #endif If I click on the #if Directive, it would be better to enhance the display (e.g. color) of the matching #else and #endif.

Describe the bug

  • OS and Version:
  • VS Code Version:
  • C/C++ Extension Version:
  • Other extensions you installed (and if the issue persists after disabling them):
  • A clear and concise description of what the bug is.

To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Screenshots

Additional context

xidianzhangjun avatar Mar 19 '19 03:03 xidianzhangjun

It sounds like this is for highlighting the matching preprocessor directives (if/else/endif/etc.).

sean-mcmanus avatar Mar 19 '19 20:03 sean-mcmanus

It sounds like this is for highlighting the matching preprocessor directives (if/else/endif/etc.).

Yes! :-) When there are too many lines of codes between #if and its matching #endif or when there are multi-level preprocessor directives, , it is not very easy to read the codes. Thanks.

xidianzhangjun avatar Mar 20 '19 02:03 xidianzhangjun

This is being added in 1.3.0, and is currently available in 1.3.0-insiders5. Closing this one as a dupe of https://github.com/microsoft/vscode-cpptools/issues/2565 .

Colengms avatar Apr 12 '21 21:04 Colengms