VSCode Snippets
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 y Eduardo Valladares delete before pushing code)
{
"console.log()": {
"scope": "javascript,typescript, jsx, tsx",
"prefix": "cl",
"body": [
"console.log($1);"
],
"description": "console.log();"
}
}
CSS
{
"css": {
"scope": "javascript,typescript",
"prefix": "css",
"body": [
"'${TM_FILENAME_BASE/^(.)(.*)/${1:/downcase}${2}/}__$1'"
],
"description": "consoles class file name"
}
}
Error Handling
{
"error": {
"scope": "javascript,typescript",
"prefix": "catch",
"body": [
".catch((err) => {",
"console.error(err);",
"});"
],
"description": "catch services error"
}
}
CSS
Class Author
{
"classAuthorCSS": {
"scope": "css",
"prefix": "class",
"body": [
"/**",
"* $TM_FILENAME_BASE.css",
"* @author John A Cruz Merced <john.cruz@seedburysquare.com>",
"* @copyright Seedbury Square, LLC. All Rights Reserved.",
"*",
"* @version $CURRENT_YEAR-$CURRENT_MONTH_NAME-$CURRENT_DATE Initial Version",
"*/",
"",
".${TM_FILENAME_BASE}__view{",
"$1",
"}"
],
"description": "Heading for new css File"
}
}