How to create a snippet in VS Code | Customise VS Code

Опубликовано: 04 Август 2026
на канале: wizokrishtech
22
2

This video help you to create a snippet in the VS Code by using ChatGPT.

ChatGPT Prompt:
Use this format as a VS Code snippet:
{
"Print to console": {
"scope": "javascript,typescript",
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
}
Now based on this reference format, create a JSON block for the following code.
Use $ {} for every editable field like tutorial topic, author name, date, steps, etc.
Reuse placeholders for repeated values where applicable.
Make it professional, and well-commented.