Untitled

 avatar
unknown
plain_text
2 years ago
3.6 kB
3
Indexable
{
    "Include and Namespace": {
        "prefix": "cpp",
        "body": [
            "#include <bits/stdc++.h>",
            "using namespace std;",
            "$0",
            "int main(){",
            "   $1",
            "return 0;",
            "}"
        ],
        "description": "Include header and namespace"
    },
    "For Loop": {
        "prefix": "forloop",
        "body": [
            "for (int i = 0; i < ${1:count}; i++) {",
            "    $0",
            "}"
        ],
        "description": "Creates a for loop"
    },
    "Cout Statement": {
        "prefix": "cout",
        "body": [
            "cout << \"$1\" << endl;"
        ],
        "description": "Standard cout statement for output in C++"
    },
    "If Statement": {
        "prefix": "if",
        "body": [
            "if ($1) {",
            "    $0",
            "}"
        ],
        "description": "Standard if statement"
    },
    "If-Else Statement": {
        "prefix": "ifelse",
        "body": [
            "if ($1) {",
            "    $2",
            "} else {",
            "    $0",
            "}"
        ],
        "description": "Standard if-else statement"
    }
}{
    "Include and Namespace": {
        "prefix": "cpp",
        "body": [
            "#include <bits/stdc++.h>",
            "using namespace std;",
            "$0",
            "int main(){",
            "   $1",
            "return 0;",
            "}"
        ],
        "description": "Include header and namespace"
    },
    "For Loop": {
        "prefix": "forloop",
        "body": [
            "for (int i = 0; i < ${1:count}; i++) {",
            "    $0",
            "}"
        ],
        "description": "Creates a for loop"
    },
    "Cout Statement": {
        "prefix": "cout",
        "body": [
            "cout << \"$1\" << endl;"
        ],
        "description": "Standard cout statement for output in C++"
    },
    "If Statement": {
        "prefix": "if",
        "body": [
            "if ($1) {",
            "    $0",
            "}"
        ],
        "description": "Standard if statement"
    },
    "If-Else Statement": {
        "prefix": "ifelse",
        "body": [
            "if ($1) {",
            "    $2",
            "} else {",
            "    $0",
            "}"
        ],
        "description": "Standard if-else statement"
    }
}{
    "Include and Namespace": {
        "prefix": "cpp",
        "body": [
            "#include <bits/stdc++.h>",
            "using namespace std;",
            "$0",
            "int main(){",
            "   $1",
            "return 0;",
            "}"
        ],
        "description": "Include header and namespace"
    },
    "For Loop": {
        "prefix": "forloop",
        "body": [
            "for (int i = 0; i < ${1:count}; i++) {",
            "    $0",
            "}"
        ],
        "description": "Creates a for loop"
    },
    "Cout Statement": {
        "prefix": "cout",
        "body": [
            "cout << \"$1\" << endl;"
        ],
        "description": "Standard cout statement for output in C++"
    },
    "If Statement": {
        "prefix": "if",
        "body": [
            "if ($1) {",
            "    $0",
            "}"
        ],
        "description": "Standard if statement"
    },
    "If-Else Statement": {
        "prefix": "ifelse",
        "body": [
            "if ($1) {",
            "    $2",
            "} else {",
            "    $0",
            "}"
        ],
        "description": "Standard if-else statement"
    }
}
Editor is loading...