Advertisement
jbn6972

Untitled

Aug 2nd, 2022
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.07 KB | None | 0 0
  1. {
  2.     // Place your snippets for cpp here. Each snippet is defined under a snippet name and has a prefix, body and
  3.     // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
  4.     // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
  5.     // same ids are connected.
  6.     // Example:
  7.     "boilerplate": {
  8.         "prefix": "boilerplate code",
  9.         "body": [
  10.             "// Code Written by : John Nixon",
  11.             "// Date: $CURRENT_DATE:$CURRENT_MONTH:$CURRENT_YEAR  Time: $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND",
  12.             "// Copyrights are applicable",
  13.             "#include<bits/stdc++.h>",
  14.             "using namespace std;",
  15.             "#define ll long long",
  16.             "#define vi vector<int>",
  17.             "#define vll vector<long long int>",
  18.             "int main(){",
  19.             "#ifndef ONLINE_JUDGE",
  20.             "freopen(\"input.txt\",\"r\",stdin);",
  21.             "freopen(\"output.txt\",\"w\",stdout);",
  22.             "#endif",
  23.             "std::ios::sync_with_stdio(false);",
  24.             "$1",
  25.             "}",
  26.         ],
  27.         "description": "Log output to console"
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement