VSCode Snippets: Difference between revisions
No edit summary |
No edit summary |
||
| Line 23: | Line 23: | ||
], | ], | ||
"description": "Heading for new JS File" | "description": "Heading for new JS File" | ||
} | |||
} | |||
</pre> | |||
* console.log() ([[Cristian Lopez]] delete before pushing code) | |||
<pre> | |||
{ | |||
"console.log()": { | |||
"scope": "javascript,typescript, jsx, tsx", | |||
"prefix": "cl", | |||
"body": [ | |||
"console.log($1);" | |||
], | |||
"description": "console.log();" | |||
} | } | ||
} | } | ||
</pre> | </pre> | ||
Revision as of 18:49, 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"
}
}
- console.log() (Cristian Lopez delete before pushing code)
{
"console.log()": {
"scope": "javascript,typescript, jsx, tsx",
"prefix": "cl",
"body": [
"console.log($1);"
],
"description": "console.log();"
}
}