'How can we make multiple Boiler plate for c++ in Visusal Studio Code

i have made a boiler plate for cpp like

{
  // Place your snippets for cpp here. Each snippet is defined under a snippet name and has a prefix, body and
  // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
  // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
  // same ids are connected.
  // Example:
  "template": {
    "prefix": "template",
    "body": [
      "#include <bits/stdc++.h>",
      "using namespace std;",
      "int main()",
      "{",
      " $1",
      "return 0;",
      "}"
    ],
    "description": "Log output to console"
  }
}

but i want to make more snippets like for gcd, function, modulus and many more . When ever i clicked on user snippet cpp then this appear. How can i make more snippets.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source