diff --git a/snippets/javascript/javascript.json b/snippets/javascript/javascript.json index 5500ecc8..60cc9084 100644 --- a/snippets/javascript/javascript.json +++ b/snippets/javascript/javascript.json @@ -937,5 +937,31 @@ "prefix": "setDate", "body": ["setDate($1);", "$0"], "description": "The setDate() method changes the day of the month of a given Date instance, based on local time." + }, + "comment": { + "prefix": "/**", + "body": [ + "/**", + " * ${1:What it does}.", + " *", + " * @param ${3:name} - ${4:Parameter description.}", + " * @returns ${2:Type and description of the returned object.}", + " *", + " * @example", + " * ```", + " * ${5:Write me later.}$0", + " * ```", + " */" + ], + "description": "A full JSDoc comment with description, parameters, return, and example." + }, + "comment simple": { + "prefix": "/*", + "body": [ + "/**", + " * ${1:Comment.}$0", + " */" + ], + "description": "A simpple JSDoc comment." } } diff --git a/snippets/javascript/jsdoc.json b/snippets/javascript/jsdoc.json index c2e9bcb4..22aaf3e6 100644 --- a/snippets/javascript/jsdoc.json +++ b/snippets/javascript/jsdoc.json @@ -1,30 +1,4 @@ { - "comment": { - "prefix": "/**", - "body": [ - "/**", - " * ${1:What it does}.", - " *", - " * @param ${3:name} - ${4:Parameter description.}", - " * @returns ${2:Type and description of the returned object.}", - " *", - " * @example", - " * ```", - " * ${5:Write me later.}$0", - " * ```", - " */" - ], - "description": "A full JSDoc comment with description, parameters, return, and example." - }, - "comment simple": { - "prefix": "/*", - "body": [ - "/**", - " * ${1:Comment.}$0", - " */" - ], - "description": "A simpple JSDoc comment." - }, "abstract": { "prefix": "@abstract", "body": [ diff --git a/snippets/javascript/tsdoc.json b/snippets/javascript/tsdoc.json index 5dfe2def..a1fdf9dc 100644 --- a/snippets/javascript/tsdoc.json +++ b/snippets/javascript/tsdoc.json @@ -1,30 +1,4 @@ { - "comment": { - "prefix": "/**", - "body": [ - "/**", - " * ${1:What it does.}", - " *", - " * @param ${3:name} - ${4:Parameter description.}", - " * @returns ${2:Type and description of the returned object.}", - " *", - " * @example", - " * ```", - " * ${5:Write me later.}$0", - " * ```", - " */" - ], - "description": "A full TSDoc comment with description, parameters, return, and example." - }, - "comment simple": { - "prefix": "/*", - "body": [ - "/**", - " * ${1:Comment.}$0", - " */" - ], - "description": "A simple TSDoc comment." - }, "alpha": { "prefix": "@alpha", "body": ["@alpha$0"], diff --git a/snippets/javascript/typescript.json b/snippets/javascript/typescript.json index 29b447a8..818d3bda 100644 --- a/snippets/javascript/typescript.json +++ b/snippets/javascript/typescript.json @@ -216,5 +216,31 @@ "prefix": "#endregion", "body": ["//#endregion"], "description": "Folding Region End" + }, + "comment": { + "prefix": "/**", + "body": [ + "/**", + " * ${1:What it does.}", + " *", + " * @param ${3:name} - ${4:Parameter description.}", + " * @returns ${2:Type and description of the returned object.}", + " *", + " * @example", + " * ```", + " * ${5:Write me later.}$0", + " * ```", + " */" + ], + "description": "A full TSDoc comment with description, parameters, return, and example." + }, + "comment simple": { + "prefix": "/*", + "body": [ + "/**", + " * ${1:Comment.}$0", + " */" + ], + "description": "A simple TSDoc comment." } }