VSCode Snippets: Difference between revisions
No edit summary |
|||
| Line 2: | Line 2: | ||
* Class Author | * Class Author | ||
<pre> | <pre> | ||
{ | |||
"classAuthorJS": { | "classAuthorJS": { | ||
"scope": "javascript,typescript", | "scope": "javascript,typescript", | ||
| Line 23: | Line 24: | ||
"description": "Heading for new JS File" | "description": "Heading for new JS File" | ||
} | } | ||
} | |||
</pre> | </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"
}
}