Skip to content

Commit

Permalink
Added InES file header snippets for vhdl and c/cpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Delafontaine committed Feb 23, 2022
1 parent 0778e1a commit fe40a83
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
18 changes: 18 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
}
26 changes: 26 additions & 0 deletions snippets/c.json
Original file line number Diff line number Diff line change
@@ -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:<author>} <${2:<email>}@zhaw.ch>",
" * @copyright ${CURRENT_YEAR} ZHAW Institute of Embedded Systems",
" * @date ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}",
" * @brief ${3:<brief description>}",
" *",
" * ${4}",
" * ------------------------------------------------------------------",
" ${BLOCK_COMMENT_END}",
"$0"
],
"description": "The InES file header"
}
}
25 changes: 25 additions & 0 deletions snippets/vhdl.json
Original file line number Diff line number Diff line change
@@ -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:<author>} <${2:<email>}@zhaw.ch>",
"--! @copyright ${CURRENT_YEAR} ZHAW Institute of Embedded Systems",
"--! @date ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}",
"--! @brief ${3:<brief description>}",
"--!",
"--! ${4}",
"---------------------------------------------------------------------",
"$0"
],
"description": "The InES file header"
}
}

0 comments on commit fe40a83

Please sign in to comment.