diff --git a/package.json b/package.json new file mode 100644 index 0000000..f67e133 --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "name": "zhaw_snippets", + "engines": { + "vscode": "^1.11.0" + }, + "contributes": { + "snippets": [ + { + "language": "vhdl", + "path": "./snippets/vhdl.json" + }, + { + "language": ["c", "cpp"], + "path": "./snippets/c.json" + } + ] + } +} diff --git a/snippets/c.json b/snippets/c.json new file mode 100644 index 0000000..07ced58 --- /dev/null +++ b/snippets/c.json @@ -0,0 +1,26 @@ +{ + "zhawh": { + "prefix": "inesh", + "body": [ + "${BLOCK_COMMENT_START}*-----------------------------------------------------------------", + " * -- _____ ______ _____ --", + " * -- |_ _| | ____|/ ____| --", + " * -- | | _ __ | |__ | (___ Institute of Embedded Systems --", + " * -- | | | '_ \| __| \___ \ Zurich University of --", + " * -- _| |_| | | | |____ ____) | Applied Sciences --", + " * -- |_____|_| |_|______|_____/ 8401 Winterthur, Switzerland --", + " * ------------------------------------------------------------------", + " * @file ${TM_FILENAME}", + " * @author ${1:} <${2:}@zhaw.ch>", + " * @copyright ${CURRENT_YEAR} ZHAW Institute of Embedded Systems", + " * @date ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}", + " * @brief ${3:}", + " *", + " * ${4}", + " * ------------------------------------------------------------------", + " ${BLOCK_COMMENT_END}", + "$0" + ], + "description": "The InES file header" + } +} diff --git a/snippets/vhdl.json b/snippets/vhdl.json new file mode 100644 index 0000000..6e609f3 --- /dev/null +++ b/snippets/vhdl.json @@ -0,0 +1,25 @@ +{ + "zhawh": { + "prefix": "inesh", + "body": [ + "-- ------------------------------------------------------------------", + "-- -- _____ ______ _____ --", + "-- -- |_ _| | ____|/ ____| --", + "-- -- | | _ __ | |__ | (___ Institute of Embedded Systems --", + "-- -- | | | '_ \\| __| \\___ \\ Zurich University of --", + "-- -- _| |_| | | | |____ ____) | Applied Sciences --", + "-- -- |_____|_| |_|______|_____/ 8401 Winterthur, Switzerland --", + "-- ------------------------------------------------------------------", + "--! @file ${TM_FILENAME}", + "--! @author ${1:} <${2:}@zhaw.ch>", + "--! @copyright ${CURRENT_YEAR} ZHAW Institute of Embedded Systems", + "--! @date ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}", + "--! @brief ${3:}", + "--!", + "--! ${4}", + "---------------------------------------------------------------------", + "$0" + ], + "description": "The InES file header" + } +}