VS Code Extensions
H

HC32 Chip Filter

by launcher

Fold inactive HC32/CD32 conditional compilation branches and highlight the selected chip macro.

Downloads

15

Rating

— (0)

Version

0.1.0

Last updated

May 07, 2026

VS Code extension for reading HC32/CD32 DDL source files with many chip-specific conditional compilation branches.

Features

  • Right-click a chip macro such as HC32F451, then run Fold Other Chips.
  • Click the status bar item Chip: ALL to choose ALL or any chip macro detected in the current C/C++ file.
  • Non-matching #if / #elif / #else / #endif branches are folded only in the editor. File contents are not changed.
  • The selected chip macro is highlighted in the active editor.
  • UnFold All Chips restores all folded chip branches and clears the highlight.

Development

Open this directory in VS Code and press F5, or launch it from a terminal:

code --extensionDevelopmentPath .\hc32-chip-filter

Run parser tests:

npm test

Related extensions