|
| 1 | +{ |
| 2 | + // Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and |
| 3 | + // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope |
| 4 | + // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is |
| 5 | + // used to trigger the snippet and the body will be expanded and inserted. Possible variables are: |
| 6 | + // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. |
| 7 | + // Placeholders with the same ids are connected. |
| 8 | + // Example: |
| 9 | + // "Print to console": { |
| 10 | + // "scope": "javascript,typescript", |
| 11 | + // "prefix": "log", |
| 12 | + // "body": [ |
| 13 | + // "console.log('$1');", |
| 14 | + // "$2" |
| 15 | + // ], |
| 16 | + // "description": "Log output to console" |
| 17 | + // } |
| 18 | + "Console Log": { |
| 19 | + "scope": "javascript,typescript", |
| 20 | + "prefix": "c", |
| 21 | + "body": [ |
| 22 | + "console.log($1)", |
| 23 | + ], |
| 24 | + "description": "Console log string" |
| 25 | + }, |
| 26 | + "Console Log String": { |
| 27 | + "scope": "javascript,typescript", |
| 28 | + "prefix": "c'", |
| 29 | + "body": [ |
| 30 | + "console.log('$1')", |
| 31 | + ], |
| 32 | + "description": "Console log string" |
| 33 | + }, |
| 34 | + "Console Log Descriptor Then Thing": { |
| 35 | + "scope": "javascript,typescript", |
| 36 | + "prefix": "ct", |
| 37 | + "body": [ |
| 38 | + "console.log('$1 ${2}', ${2})", |
| 39 | + ], |
| 40 | + "description": "Console log descriptor then thing" |
| 41 | + }, |
| 42 | + "Console Log value name and value": { |
| 43 | + "scope": "javascript,typescript", |
| 44 | + "prefix": "c,", |
| 45 | + "body": [ |
| 46 | + "console.log('$1', ${1})", |
| 47 | + ], |
| 48 | + "description": "Console log value name and value" |
| 49 | + }, |
| 50 | + "Console Log Emoji 🔥": { |
| 51 | + "scope": "javascript,typescript", |
| 52 | + "prefix": "cc", |
| 53 | + "body": [ |
| 54 | + "console.log('${1|🔥,❌,🚽,🌿,💙|}$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1')" |
| 55 | + ], |
| 56 | + "description": "Make console output noticable" |
| 57 | + } |
| 58 | +} |
0 commit comments