BigBahss / vscode-cmantic

C/C++ code generation for VS Code: Generate Definitions, Getters, Setters, and much more.
https://bigbahss.github.io/vscode-cmantic/
MIT License
84 stars 9 forks source link

Amend Header Guard #26

Closed BigBahss closed 3 years ago

BigBahss commented 3 years ago

Adds functionality to "amend" a header guard if it doesn't match the configured style. Add Header Guard will no longer be disabled in Source Actions... if a header guard already exists, and instead will display as Amend Header Guard (which is only disabled when the existing header guard matches the configuration). Additionally, if you select the header guard with the cursor, then Amend Header Guard will be suggested as a quick-fix (blue light-bulb).

Running Add Header Guard from the command-palette will ammend the header guard if possible.