cppIncludeGuard icon indicating copy to clipboard operation
cppIncludeGuard copied to clipboard

Auto-update tend to unintendedly update

Open maximeB opened this issue 3 years ago • 0 comments

Hi,

When it comes to automatically update the include guard I only see those two settings:

  • C/C++ Include Guard: Auto Include Guard Insertion For New File (automatically insert the include guard when adding a new header file)
  • C/C++ Include Guard: Auto Update Include Guard (automatically update the include guard when renaming a file)

Considering there description I would like them both activated (which is the default), but it appears that the include guards are automatically updated even when I don't rename a file -- usually when I goto-definition (for the record I use clangd extension).

This creates unintended changes when I work on other projects than mine.

I suspect the "Auto Update Include Guard" to be the culprit, considering its name instead of the description, so I'll de-activate it, but I'd really like to use an auto-update when renaming a file.

maximeB avatar Feb 23 '22 09:02 maximeB