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.
Adds functionality to "amend" a header guard if it doesn't match the configured style.
Add Header Guard
will no longer be disabled inSource Actions...
if a header guard already exists, and instead will display asAmend Header Guard
(which is only disabled when the existing header guard matches the configuration). Additionally, if you select the header guard with the cursor, thenAmend 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.