Skip to content

Instantly share code, notes, and snippets.

@tinytengu
Created July 13, 2021 17:46
Show Gist options
  • Save tinytengu/37d4342f44fd569ec2855a082d855c12 to your computer and use it in GitHub Desktop.
Save tinytengu/37d4342f44fd569ec2855a082d855c12 to your computer and use it in GitHub Desktop.
[VSCode Snippet] C++ header file #ifndef pattern
{
"Header #ifndef pattern": {
"prefix": "hdef",
"body": [
"#ifndef _H_${TM_FILENAME/(.*)[.][h]$/${1:/upcase}/}",
"#define _H_${TM_FILENAME/(.*)[.][h]$/${1:/upcase}/}",
"\n${1:/* content */}\n",
"#endif"
],
"description": "Header file pattern to preserve reinclude"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment