{ "for": { "prefix": [ "for", "forr" ], "body": [ "for (int ${1:i}=${2:0}; $1${3:<expr>}; ${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:<return-type>} ${2:<function>}(int argc, char *argv[]) {", "\t$0", "}" ], "description": "function" }, "while": { "prefix": "while", "body": [ "while ($1) {", "\t$0", "}" ], "description": "while" }, "if": { "prefix": "if", "body": [ "if (${1:<condition>}) {", "\t$0", "}" ], "description": "if" }, "print": { "prefix": [ "printf" ], "body": [ "printf(\"%${1:<type>}\\n\", ${2:<variable>});" ], "description": "for print debugging" }, "else": { "prefix": "else", "body": [ "else {", "\t$0", "}" ], "description": "else statement" }, "struct": { "prefix": [ "typedef", "struct" ], "body": [ "typedef struct ${1:<struct-name>} {", "\t$0;", "}" ], "description": "define struct" } }