VSCode Snippets: Difference between revisions
(Created page with "== Javascript ==") |
|||
| Line 1: | Line 1: | ||
== Javascript == | == Javascript == | ||
* Class Author | |||
<pre> | |||
"classAuthorJS": { | |||
"scope": "javascript,typescript", | |||
"prefix": "class", | |||
"body": [ | |||
"/**", | |||
"* $TM_FILENAME_BASE.js", | |||
"* @author [FirstName LastName] <firstName.lastName@seedburysquare.com>", | |||
"* @copyright Seedbury Square, LLC. All Rights Reserved.", | |||
"*", | |||
"* @version $CURRENT_YEAR-$CURRENT_MONTH_NAME-$CURRENT_DATE Initial Version", | |||
"*/", | |||
"", | |||
"export class $TM_FILENAME_BASE{", | |||
"constructor(){", | |||
"this.view = setElementClassList(getElementContainer(), '${TM_FILENAME_BASE/^(.)(.*)/${1:/downcase}${2}/}__view');", | |||
"$1", | |||
"}", | |||
"}" | |||
], | |||
"description": "Heading for new JS File" | |||
} | |||
</pre> | |||
Revision as of 18:47, 31 March 2025
Javascript
- Class Author
"classAuthorJS": {
"scope": "javascript,typescript",
"prefix": "class",
"body": [
"/**",
"* $TM_FILENAME_BASE.js",
"* @author [FirstName LastName] <firstName.lastName@seedburysquare.com>",
"* @copyright Seedbury Square, LLC. All Rights Reserved.",
"*",
"* @version $CURRENT_YEAR-$CURRENT_MONTH_NAME-$CURRENT_DATE Initial Version",
"*/",
"",
"export class $TM_FILENAME_BASE{",
"constructor(){",
"this.view = setElementClassList(getElementContainer(), '${TM_FILENAME_BASE/^(.)(.*)/${1:/downcase}${2}/}__view');",
"$1",
"}",
"}"
],
"description": "Heading for new JS File"
}