1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
| { "C File Header": { "prefix": "hhead", "body": [ "/**", " ******************************************************************************", " * @file ${TM_FILENAME}", " * @author John Doe/Jane Doe", " * @version V1.0.0", " * @date ${CURRENT_YEAR}/${CURRENT_MONTH}/${CURRENT_DATE}", " * @copyright Copyright (c) ${CURRENT_YEAR}, John Doe/Jane Doe", " * @brief ", " ******************************************************************************", " * @attention", " *", "*/", " ", " #ifndef ${TM_FILENAME_BASE/(.*)/${1:/upcase}_H/}", " #define ${TM_FILENAME_BASE/(.*)/${1:/upcase}_H/}", " #ifdef __cplusplus", " extern \"C\" {", " #endif", " ", " /* Includes ------------------------------------------------------------------*/", " ", " /* Exported constants --------------------------------------------------------*/", " /* Exported macros -----------------------------------------------------------*/", " ", " /* Exported types ------------------------------------------------------------*/", " /* Exported variables ---------------------------------------------------------*/", " /* Exported functions ---------------------------------------------------------*/", " ", " ", " #ifdef __cplusplus", " }", " #endif", " #endif /* ${TM_FILENAME_BASE/(.*)/${1:/upcase}_H/} */", ], "description": "Create a new C file with header" } }
|