C/C++ Include Guard installs statistics
By Akira Miyakoda · VS Code Marketplace · Other
Insert C/C++ Include Guard
C/C++ Include Guard has 239,312 recorded installs on VS Code Marketplace, ranking #1339 of 2,501 tracked listings.
Rating: 5.00 / 5 from 6 ratings
About C/C++ Include Guard
Insert C/C++ Include Guard Macros
The C/C++ Include Guard extension enables you to add, remove or update include guard macros to your C/C++ header files in one go.
Thanks to contributors: @erkan-ozkan, @HO-COOH, @sleiner, @Philanatidae, @alexolog
Screenshots
Automatically insert include guard when creating a new header file

Insert and Remove include guard

Update existing include guard

Automatically update include guard when renaming a header file

Features
- Generates include guard macros from GUID (or UUID v4), file name or file path. All non-alphanumeric characters are replaced with underscores.
// GUID
#define E8A33412_A210_4F05_99A4_F6E2019B7137
// File name
#define UTILS_H
// File path form the prject root
#define FOO_BAR_UTILS_H
- Selectable comment style on
#endif. Block, line or none.
/* Block comment. */
#endif /* AE2E827A_F4B3_422C_801F_DF9020986F2B */
// Line comment.
#endif // B93E7584_5E15_48C3_9D9C_92263000BF7B
// Without comment.
#endif
- Prevents GUIDs from starting with a decimal number. (Optional)
// Can prevent ill-formed macros like this.
#define 47A7840C_D31B_4D39_BF77_E5E957F0A97A
- Adds a cusomizable prefix and/or suffix. (Optional)
#define ABC_7FE87DA8_601D_4D8E_AEE5_E6BE6EAB5678_XYZ
- Shortens redundant underscores. (Optional)
// From a path like 'foo/_bar_/utils.h'.
#define FOO_BAR_UTILS_H // not FOO__BAR__UTILS_H
- Removes the file extension. (Optional)
// From a path like 'foo/bar/utils.h'.
#define FOO_BAR_UTILS
- Selectable number of folders which should be used for include guard. (Optional)
// From a path like 'foo/bar/utils.h'.
#define BAR_UTILS
- Skips comment blocks at the beginning of a file. (Optional)
- Inserts a blank line after the first comment blocks. (Optional)
/**
* Copyright (c) 2019 Akira Miyakoda
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#ifndef FOO_BAR_UTILS_H // <- Inserted here.
#define FOO_BAR_UTILS_H
-
Removes #pragma once when an include guard is added. (Optional)
-
Customizable number of spaces between
#endifand its comment.
Description from the VS Code Marketplace listing.
- c
- c++
- multi-root ready
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (5)Similar VS Code Marketplace Other plugins
All 20 C/C++ Include Guard alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=akiramiyakoda.cppincludeguard. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.