Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

vs code snippets

// in file 'Code/User/snippets/javascript.json' for only JS files
{
  "For Loop": {
    "prefix": ["for", "for-const"],
    "body": ["for (const ${2:element} of ${1:array}) {", "	$0", "}"],
    "description": "A for loop."
  }
}

// in file 'Code/User/snippets/fileName.code-snippets' for Global Snippets
{
  "For Loop": {
    "scope": "javascript,typescript,php,html",
    "prefix": ["for", "for-const"],
    "body": ["for (const ${2:element} of ${1:array}) {", "	$0", "}"],
    "description": "A for loop."
  }
}
Source by code.visualstudio.com #
 
PREVIOUS NEXT
Tagged: #code #snippets
ADD COMMENT
Topic
Name
7+2 =