Skip to content

Instantly share code, notes, and snippets.

@simonliu009
Last active March 2, 2019 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonliu009/af04c55ef672bfc0f7ed0821f8584ae0 to your computer and use it in GitHub Desktop.
Save simonliu009/af04c55ef672bfc0f7ed0821f8584ae0 to your computer and use it in GitHub Desktop.
[file header snippets]file header snippet for .h file #vscode
{
"#ifndef … #define … #endif":{
"prefix": "def",
"body": "#ifndef ${1:${TM_FILENAME_BASE/(.*)/_${1:/upcase}_H/i}} \n#define $1 \n#ifdef __cplusplus\nextern \"C\" {\n#endif\n${2:}\n\n\n#ifdef __cplusplus\n}\n#endif\n#endif\t// $1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment