dotfiles/.config/Code/User/sync/snippets/lastSyncsnippets.json

1 line
15 KiB
JSON
Raw Normal View History

2024-06-16 18:53:25 +05:00
{"ref":"b169b45b-60d2-49f3-854f-8ee4a126bf87","syncData":{"version":1,"machineId":"4e86ef9b-62f8-4424-ab9d-d67492e993e1","content":"{\"cpp.json\":\"{\\n\\t// Place your snippets for cpp here. Each snippet is defined under a snippet name and has a prefix, body and \\n\\t// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:\\n\\t// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the \\n\\t// same ids are connected.\\n\\t// Example:\\n\\t// \\\"Print to console\\\": {\\n\\t// \\t\\\"prefix\\\": \\\"log\\\",\\n\\t// \\t\\\"body\\\": [\\n\\t// \\t\\t\\\"console.log('$1');\\\",\\n\\t// \\t\\t\\\"$2\\\"\\n\\t// \\t],\\n\\t// \\t\\\"description\\\": \\\"Log output to console\\\"\\n\\t// }\\n\\n\\t\\\"Startup\\\": {\\n\\t\\t\\\"scope\\\": \\\"cpp\\\",\\n\\t\\t\\\"prefix\\\": \\\"rafay\\\",\\n\\t\\t\\\"body\\\": [\\n\\t\\t\\t\\\"/*\\\",\\n\\t\\t\\t\\\"Rafay Ahmad\\\",\\n\\t\\t\\t\\\"23I-2526\\\",\\n\\t\\t\\t\\\"*/\\\"\\n\\t\\t\\t\\\"#include <iostream>\\\",\\n\\t\\t\\t\\\"using namespace std;\\\",\\n\\t\\t\\t\\\"\\\",\\n\\t\\t\\t\\\"int main(){\\\",\\n\\t\\t\\t\\\"\\\",\\n\\t\\t\\t\\\"\\t$0\\\",\\n\\t\\t\\t\\\"\\\",\\n\\t\\t\\t\\\"\\treturn 0;\\\",\\n\\t\\t\\t\\\"}\\\"\\n\\t\\t]\\n\\t},\\n\\t\\\"Better Cout\\\": {\\n\\t\\t\\\"scope\\\": \\\"cpp\\\",\\n\\t\\t\\\"prefix\\\": \\\"co\\\",\\n\\t\\t\\\"body\\\": [\\n\\t\\t\\t\\\"cout<<$1;$0\\\"\\n\\t\\t]\\n\\t},\\n\\t\\\"fori\\\": {\\n\\t\\t\\\"prefix\\\": [\\\"fori\\\"],\\n\\t\\t\\\"body\\\": [\\n\\t\\t\\t\\\"for(${1:int} ${2:i}=${3:0};${2:i}<${4:max};${2:i}${5:++}){\\\",\\n\\t\\t\\t\\\"\\\\t$0\\\",\\n\\t\\t\\t\\\"}\\\"\\n\\t\\t],\\n\\t\\t\\\"description\\\": \\\"Indexed for loop\\\"\\n\\t},\\n\\t\\\"foreach\\\": {\\n\\t\\t\\\"prefix\\\": [\\\"foreach\\\", \\\"iter\\\"],\\n\\t\\t\\\"body\\\": [\\n\\t\\t\\t\\\"for(${1:type} ${2:var} : ${3:iterable}){\\\",\\n\\t\\t\\t\\\"\\\\t$0\\\",\\n\\t\\t\\t\\\"}\\\"\\n\\t\\t],\\n\\t\\t\\\"description\\\": \\\"Enhanced for loop\\\"\\n\\t},\\n\\t\\\"if\\\": {\\n\\t\\t\\\"prefix\\\": [\\\"if\\\"],\\n\\t\\t\\\"body\\\": [\\n\\t\\t\\t\\\"if(${1:condition}){\\\",\\n\\t\\t\\t\\\"\\\\t$0\\\",\\n\\t\\t\\t\\\"}\\\"\\n\\t\\t],\\n\\t\\t\\\"description\\\": \\\"if statement\\\"\\n\\t},\\n\\t\\\"ifelse\\\": {\\n\\t\\t\\\"prefix\\\": [\\\"ifelse\\\"],\\n\\t\\t\\\"body\\\": [\\n\\t\\t\\t\\\"if(${1:condition}){\\\",\\n\\t\\t\\t\\\"\\\\t$2\\\",\\n\\t\\t\\t\\\"}\\\",\\n\\t\\t\\t\\\"else{\\\",\\n\\t\\t\\t\\\"\\\\t$0\\\",\\n\\t\\t\\t\\\"}\\\"\\n\\t\\t],\\n\\t\\t\\\"description\\\": \\\"if/else statement\\\"\\n\\t},\\n\\t\\\"ifnull\\\": {\\n\\t\\t\\\"prefix\\\": [\\\"ifnull\\\"],\\n\\t\\t\\\"body\\\": [\\n\\t\\t\\t\\\"if(${1:condition}==null){\\\",\\n\\t\\t\\t\\\"\\\\t$0\\\",\\n\\t\\t\\t\\\"}\\\"\\n\\t\\t],\\n\\t\\t\\\"description\\\": \\\"if statement checking for null\\\"\\n\\t},\\n\\t\\\"ifnotnull\\\": {\\n\\t\\t\\\"prefix\\\": [\\\"ifnotnull\\\"],\\n\\t\\t\\\"body\\\": [\\n\\t\\t\\t\\\"if(${1:condition}!=null){\\\",\\n\\t\\t\\t\\\"\\\\t$0\\\",\\n\\t\\t\\t\\\"}\\\"\\n\\t\\t],\\n\\t\\t\\\"description\\\": \\\"if statement checking for not null\\\"\\n\\t},\\n\\t\\\"While Statement\\\": {\\n\\t\\t\\\"prefix\\\": [\\\"while\\\"],\\n\\t\\t\\\"body\\\": [\\n\\t\\t\\t\\\"while(${1:condition}){\\\",\\n\\t\\t\\t\\\"\\\\t$0\\\",\\n\\t\\t\\t\\\"}\\\"\\n\\t\\t],\\n\\t\\t\\\"description\\\": \\\"While Statement\\\"\\n\\t},\\n\\t\\\"Do-While Statement\\\": {\\n\\t\\t\\\"prefix\\\": [\\\"dowhile\\\"],\\n\\t\\t\\\"body\\\": [\\n\\t\\t\\t\\\"do{\\\",\\n\\t\\t\\t\\\"\\\\t$0\\\",\\n\\t\\t\\t\\\"}while(${1:condition});\\\"\\n\\t\\t],\\n\\t\\t\\\"description\\\": \\\"Do-While Statement\\\"\\n\\t},\\n\\t\\\"Switch Statement\\\": {\\n\\t\\t\\\"prefix\\\": \\\"switch\\\",\\n\\t\\t\\\"body\\\": [\\n\\t\\t\\t\\\"switch(${1:key}){\\\",\\n\\t\\t\\t\\\"\\\\t$0\\\",\\n\\t\\t\\t\\\"}\\\"\\n\\t\\t],\\n\\t\\t\\\"description\\\": \\\"Switch Statement\\\"\\n\\t},\\n\\n}\\n\\n{\\n\\t// Place your snippets for cpp here. Each snippet is defined under a s