{ "for": { "prefix": [ "for", "forr" ], "body": [ "for (int ${1:i}=${2:0}; $1${3:}; ${1}${4:++}) {", "\t$0", "}" ], "description": "for range" }, "main": { "prefix": "main", "body": [ "int main(int argc, char *argv[]) {", "\t$0", "}" ], "description": "main function" }, "func": { "prefix": "func", "body": [ "${1:} ${2:}(int argc, char *argv[]) {", "\t$0", "}" ], "description": "function" }, "while": { "prefix": "while", "body": [ "while ($1) {", "\t$0", "}" ], "description": "while" }, "if": { "prefix": "if", "body": [ "if (${1:}) {", "\t$0", "}" ], "description": "if" }, "print": { "prefix": [ "printf" ], "body": [ "printf(\"%${1:}\\n\", ${2:});" ], "description": "for print debugging" }, "else": { "prefix": "else", "body": [ "else {", "\t$0", "}" ], "description": "else statement" }, "struct": { "prefix": [ "typedef", "struct" ], "body": [ "typedef struct ${1:} {", "\t$0;", "}" ], "description": "define struct" } }