Skip to content

Commit

Permalink
Updated the python header
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Delafontaine committed Jul 20, 2022
1 parent 178d3c7 commit 57f6cee
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ All notable changes to the "zhaw-snippets" extension will be documented in this
### 1.0.4

- Removed angle brackets from python header snippets
- Updated readme

### 1.0.5

- Updated the python header, to match common usage
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,7 @@ Users appreciate release notes as you update your extension.

- Removed angle brackets from python header snippets
- Updated readme

### 1.0.5

- Updated the python header, to match common usage
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "ZHAW Snippets",
"description": "A collection of ZHAW related snippets",
"icon": "imgs/zhaw.png",
"version": "1.0.4",
"version": "1.0.5",
"publisher": "InES-HPMM",
"engines": {
"vscode": "^1.64.0"
Expand Down
29 changes: 14 additions & 15 deletions snippets/python.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,26 @@
"prefix": "inesh",
"body": [
"${1:#!/usr/bin/env python}",
"${LINE_COMMENT} ============================================================",
"${LINE_COMMENT} _____ ______ _____ ",
"${LINE_COMMENT} |_ _| | ____|/ ____|",
"${LINE_COMMENT} | | _ __ | |__ | (___ Institute of Embedded Systems",
"${LINE_COMMENT} | | | '_ \\\\| __| \\___ \\ Zurich University of",
"${LINE_COMMENT} _| |_| | | | |____ ____) | Applied Sciences",
"${LINE_COMMENT} |_____|_| |_|______|_____/ 8401 Winterthur, Switzerland",
"${LINE_COMMENT} ============================================================",
"",
"\"\"\"",
"${2:<brief description>}",
"",
"------------------------------------------------------------------",
"-- _____ ______ _____ --",
"-- |_ _| | ____|/ ____| --",
"-- | | _ __ | |__ | (___ Institute of Embedded Systems --",
"-- | | | '_ \\\\| __| \\___ \\ Zurich University of --",
"-- _| |_| | | | |____ ____) | Applied Sciences --",
"-- |_____|_| |_|______|_____/ 8401 Winterthur, Switzerland --",
"------------------------------------------------------------------",
"@author: ${3:<author>}",
"@contact: ${4:<email>}@zhaw.ch",
"@copyright: ${CURRENT_YEAR} ZHAW Institute of Embedded Systems",
"@date: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}",
"",
"${5}",
"------------------------------------------------------------------",
"${3:<extensive description>}",
"\"\"\"",
"",
"",
"__author__ = \"${4:<author>} (${5:<initials>}@zhaw.ch)\"",
"__copyright__ =\"${CURRENT_YEAR} ZHAW Institute of Embedded Systems\"",
"__date__ = \"${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}\"",
"",
"$0"
],
"description": "The InES file header"
Expand Down

0 comments on commit 57f6cee

Please sign in to comment.