Last active
February 23, 2020 22:50
-
-
Save flavioespinoza/0a7d4e397c21b41b88f1de7eb7d58e56 to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-02-10T18:33:23.976Z","extensionVersion":"v3.4.3"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"metadata": { | |
"id": "6e440e71-8ed9-4f25-bb78-4b13096b8a03", | |
"publisherId": "formulahendry.auto-rename-tag", | |
"publisherDisplayName": "formulahendry" | |
}, | |
"name": "auto-rename-tag", | |
"publisher": "formulahendry", | |
"version": "0.1.1" | |
}, | |
{ | |
"metadata": { | |
"id": "b1b0f283-8246-4e90-832e-a6c409d378d1", | |
"publisherId": "mads-hartmann.bash-ide-vscode", | |
"publisherDisplayName": "mads-hartmann" | |
}, | |
"name": "bash-ide-vscode", | |
"publisher": "mads-hartmann", | |
"version": "1.4.0" | |
}, | |
{ | |
"metadata": { | |
"id": "7a0110bb-231a-4598-aa1b-0769ea46d28b", | |
"publisherId": "aaron-bond.better-comments", | |
"publisherDisplayName": "aaron-bond" | |
}, | |
"name": "better-comments", | |
"publisher": "aaron-bond", | |
"version": "2.0.5" | |
}, | |
{ | |
"metadata": { | |
"id": "a6a0c5b2-d078-4bf5-a9ee-4e37054414b3", | |
"publisherId": "formulahendry.code-runner", | |
"publisherDisplayName": "formulahendry" | |
}, | |
"name": "code-runner", | |
"publisher": "formulahendry", | |
"version": "0.9.15" | |
}, | |
{ | |
"metadata": { | |
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd", | |
"publisherId": "Shan.code-settings-sync", | |
"publisherDisplayName": "Shan" | |
}, | |
"name": "code-settings-sync", | |
"publisher": "Shan", | |
"version": "3.4.3" | |
}, | |
{ | |
"metadata": { | |
"id": "96c69be9-5b09-4a18-8c82-4d30ab145017", | |
"publisherId": "formulahendry.docker-explorer", | |
"publisherDisplayName": "formulahendry" | |
}, | |
"name": "docker-explorer", | |
"publisher": "formulahendry", | |
"version": "0.1.6" | |
}, | |
{ | |
"metadata": { | |
"id": "0f8e11dc-56b3-4ad5-9e66-ea9d1f0a117a", | |
"publisherId": "formulahendry.docker-extension-pack", | |
"publisherDisplayName": "formulahendry" | |
}, | |
"name": "docker-extension-pack", | |
"publisher": "formulahendry", | |
"version": "0.0.1" | |
}, | |
{ | |
"metadata": { | |
"id": "532533c9-a894-4a58-9eee-bbfbe7c06f71", | |
"publisherId": "mikestead.dotenv", | |
"publisherDisplayName": "mikestead" | |
}, | |
"name": "dotenv", | |
"publisher": "mikestead", | |
"version": "1.0.1" | |
}, | |
{ | |
"metadata": { | |
"id": "19804510-b475-4dae-b0f7-6ca08fd1af0c", | |
"publisherId": "dsznajder.es7-react-js-snippets", | |
"publisherDisplayName": "dsznajder" | |
}, | |
"name": "es7-react-js-snippets", | |
"publisher": "dsznajder", | |
"version": "2.5.0" | |
}, | |
{ | |
"metadata": { | |
"id": "9f5a82a8-eb54-420f-9fb8-171c5405ec8a", | |
"publisherId": "MikeBovenlander.formate", | |
"publisherDisplayName": "MikeBovenlander" | |
}, | |
"name": "formate", | |
"publisher": "MikeBovenlander", | |
"version": "1.1.3" | |
}, | |
{ | |
"metadata": { | |
"id": "8bb12ae3-73f8-40cf-86b7-4bd5729c6238", | |
"publisherId": "GrapeCity.gc-excelviewer", | |
"publisherDisplayName": "GrapeCity" | |
}, | |
"name": "gc-excelviewer", | |
"publisher": "GrapeCity", | |
"version": "2.1.32" | |
}, | |
{ | |
"metadata": { | |
"id": "c08deb01-969e-4db9-b8d9-1f1b933087f4", | |
"publisherId": "yopeyopey.github-issues", | |
"publisherDisplayName": "yopeyopey" | |
}, | |
"name": "github-issues", | |
"publisher": "yopeyopey", | |
"version": "1.3.0" | |
}, | |
{ | |
"metadata": { | |
"id": "04ebe680-6c3c-4882-8310-26b324b72bfe", | |
"publisherId": "ms-vscode.github-issues-prs", | |
"publisherDisplayName": "ms-vscode" | |
}, | |
"name": "github-issues-prs", | |
"publisher": "ms-vscode", | |
"version": "0.9.2" | |
}, | |
{ | |
"metadata": { | |
"id": "cb3291d9-46ce-4356-ab12-1622573d3de3", | |
"publisherId": "gimenete.github-linker", | |
"publisherDisplayName": "gimenete" | |
}, | |
"name": "github-linker", | |
"publisher": "gimenete", | |
"version": "0.2.3" | |
}, | |
{ | |
"metadata": { | |
"id": "4de763bd-505d-4978-9575-2b7696ecf94e", | |
"publisherId": "eamodio.gitlens", | |
"publisherDisplayName": "eamodio" | |
}, | |
"name": "gitlens", | |
"publisher": "eamodio", | |
"version": "10.2.0" | |
}, | |
{ | |
"metadata": { | |
"id": "d6f6cfea-4b6f-41f4-b571-6ad2ab7918da", | |
"publisherId": "ms-vscode.Go", | |
"publisherDisplayName": "ms-vscode" | |
}, | |
"name": "Go", | |
"publisher": "ms-vscode", | |
"version": "0.13.0" | |
}, | |
{ | |
"metadata": { | |
"id": "3e8a391a-f3f0-44b2-8631-7847b0c8839a", | |
"publisherId": "kumar-harsh.graphql-for-vscode", | |
"publisherDisplayName": "kumar-harsh" | |
}, | |
"name": "graphql-for-vscode", | |
"publisher": "kumar-harsh", | |
"version": "1.15.3" | |
}, | |
{ | |
"metadata": { | |
"id": "3fe6f5f6-ba66-4d7e-87da-ae72742dfc17", | |
"publisherId": "jbockle.jbockle-format-files", | |
"publisherDisplayName": "jbockle" | |
}, | |
"name": "jbockle-format-files", | |
"publisher": "jbockle", | |
"version": "3.0.0" | |
}, | |
{ | |
"metadata": { | |
"id": "d2d7a30c-2706-47b9-9dd5-5ab6ead0fbbe", | |
"publisherId": "khaeransori.json2csv", | |
"publisherDisplayName": "khaeransori" | |
}, | |
"name": "json2csv", | |
"publisher": "khaeransori", | |
"version": "0.0.1" | |
}, | |
{ | |
"metadata": { | |
"id": "b63c44fd-0457-4696-99e9-dbfdf70d77de", | |
"publisherId": "ritwickdey.LiveServer", | |
"publisherDisplayName": "ritwickdey" | |
}, | |
"name": "LiveServer", | |
"publisher": "ritwickdey", | |
"version": "5.6.1" | |
}, | |
{ | |
"metadata": { | |
"id": "9fdd4cad-d0b9-4c21-b7b7-54b9a7a7dbcf", | |
"publisherId": "mervin.markdown-formatter", | |
"publisherDisplayName": "mervin" | |
}, | |
"name": "markdown-formatter", | |
"publisher": "mervin", | |
"version": "0.7.9" | |
}, | |
{ | |
"metadata": { | |
"id": "3b1db1fc-c7f7-4bd6-9fa4-b499dfa99a8a", | |
"publisherId": "shd101wyy.markdown-preview-enhanced", | |
"publisherDisplayName": "shd101wyy" | |
}, | |
"name": "markdown-preview-enhanced", | |
"publisher": "shd101wyy", | |
"version": "0.5.2" | |
}, | |
{ | |
"metadata": { | |
"id": "a831e395-d150-46aa-8644-3027af1c5b36", | |
"publisherId": "dawhite.mustache", | |
"publisherDisplayName": "dawhite" | |
}, | |
"name": "mustache", | |
"publisher": "dawhite", | |
"version": "1.1.1" | |
}, | |
{ | |
"metadata": { | |
"id": "1a7b1f64-469d-4116-bb35-508ea3894f88", | |
"publisherId": "raynigon.nginx-formatter", | |
"publisherDisplayName": "raynigon" | |
}, | |
"name": "nginx-formatter", | |
"publisher": "raynigon", | |
"version": "0.0.8" | |
}, | |
{ | |
"metadata": { | |
"id": "dff6b801-247e-40e9-82e8-8c9b1d19d1b8", | |
"publisherId": "christian-kohler.npm-intellisense", | |
"publisherDisplayName": "christian-kohler" | |
}, | |
"name": "npm-intellisense", | |
"publisher": "christian-kohler", | |
"version": "1.3.0" | |
}, | |
{ | |
"metadata": { | |
"id": "4386e6f6-ec10-4463-9d23-c24278718947", | |
"publisherId": "tomoki1207.pdf", | |
"publisherDisplayName": "tomoki1207" | |
}, | |
"name": "pdf", | |
"publisher": "tomoki1207", | |
"version": "0.5.1" | |
}, | |
{ | |
"metadata": { | |
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90", | |
"publisherId": "esbenp.prettier-vscode", | |
"publisherDisplayName": "esbenp" | |
}, | |
"name": "prettier-vscode", | |
"publisher": "esbenp", | |
"version": "3.20.0" | |
}, | |
{ | |
"metadata": { | |
"id": "67e66172-30c7-4478-8f5d-6eac4ae755dc", | |
"publisherId": "mohsen1.prettify-json", | |
"publisherDisplayName": "mohsen1" | |
}, | |
"name": "prettify-json", | |
"publisher": "mohsen1", | |
"version": "0.0.3" | |
}, | |
{ | |
"metadata": { | |
"id": "3e2ce825-2eba-46fb-a9ac-054c05c37aca", | |
"publisherId": "logerfo.procfile-support", | |
"publisherDisplayName": "logerfo" | |
}, | |
"name": "procfile-support", | |
"publisher": "logerfo", | |
"version": "0.0.1" | |
}, | |
{ | |
"metadata": { | |
"id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5", | |
"publisherId": "ms-python.python", | |
"publisherDisplayName": "ms-python" | |
}, | |
"name": "python", | |
"publisher": "ms-python", | |
"version": "2020.1.58038" | |
}, | |
{ | |
"metadata": { | |
"id": "aae0701b-111f-49c1-9000-abd37a442f28", | |
"publisherId": "WallabyJs.quokka-vscode", | |
"publisherDisplayName": "WallabyJs" | |
}, | |
"name": "quokka-vscode", | |
"publisher": "WallabyJs", | |
"version": "1.0.277" | |
}, | |
{ | |
"metadata": { | |
"id": "3792588c-3d35-442d-91ea-fe6a755e8155", | |
"publisherId": "mechatroner.rainbow-csv", | |
"publisherDisplayName": "mechatroner" | |
}, | |
"name": "rainbow-csv", | |
"publisher": "mechatroner", | |
"version": "1.5.0" | |
}, | |
{ | |
"metadata": { | |
"id": "607fd052-be03-4363-b657-2bd62b83d28a", | |
"publisherId": "ms-vscode-remote.remote-ssh", | |
"publisherDisplayName": "ms-vscode-remote" | |
}, | |
"name": "remote-ssh", | |
"publisher": "ms-vscode-remote", | |
"version": "0.47.2" | |
}, | |
{ | |
"metadata": { | |
"id": "bfeaf631-bcff-4908-93ed-fda4ef9a0c5c", | |
"publisherId": "ms-vscode-remote.remote-ssh-edit", | |
"publisherDisplayName": "ms-vscode-remote" | |
}, | |
"name": "remote-ssh-edit", | |
"publisher": "ms-vscode-remote", | |
"version": "0.49.0" | |
}, | |
{ | |
"metadata": { | |
"id": "dda49fd5-1f3b-4d25-bf61-4fc41905ede5", | |
"publisherId": "humao.rest-client", | |
"publisherDisplayName": "humao" | |
}, | |
"name": "rest-client", | |
"publisher": "humao", | |
"version": "0.23.1" | |
}, | |
{ | |
"metadata": { | |
"id": "147ba3a4-9388-40e0-83d3-bfe3335a7f0e", | |
"publisherId": "artydeveloperduck.save-as-snippet", | |
"publisherDisplayName": "artydeveloperduck" | |
}, | |
"name": "save-as-snippet", | |
"publisher": "artydeveloperduck", | |
"version": "0.0.1" | |
}, | |
{ | |
"metadata": { | |
"id": "5fb19573-2183-4cf2-b53d-0fb869dae7ae", | |
"publisherId": "foxundermoon.shell-format", | |
"publisherDisplayName": "foxundermoon" | |
}, | |
"name": "shell-format", | |
"publisher": "foxundermoon", | |
"version": "7.0.1" | |
}, | |
{ | |
"metadata": { | |
"id": "b3d03957-2620-41ee-9854-88b0af1ee988", | |
"publisherId": "remcoros.startanyshell", | |
"publisherDisplayName": "remcoros" | |
}, | |
"name": "startanyshell", | |
"publisher": "remcoros", | |
"version": "0.3.1" | |
}, | |
{ | |
"metadata": { | |
"id": "fe20f03a-2abf-470a-ab23-d671ec38ce42", | |
"publisherId": "coolbear.systemd-unit-file", | |
"publisherDisplayName": "coolbear" | |
}, | |
"name": "systemd-unit-file", | |
"publisher": "coolbear", | |
"version": "1.0.6" | |
}, | |
{ | |
"metadata": { | |
"id": "2f665579-17e0-47d6-93de-e07eac12fe3e", | |
"publisherId": "jsonchou.text-compact", | |
"publisherDisplayName": "jsonchou" | |
}, | |
"name": "text-compact", | |
"publisher": "jsonchou", | |
"version": "0.0.3" | |
}, | |
{ | |
"metadata": { | |
"id": "7752d5d1-7dab-46f8-bc86-ffca8c2d33e7", | |
"publisherId": "fabianlauer.vs-code-xml-format", | |
"publisherDisplayName": "fabianlauer" | |
}, | |
"name": "vs-code-xml-format", | |
"publisher": "fabianlauer", | |
"version": "0.1.5" | |
}, | |
{ | |
"metadata": { | |
"id": "c39988ef-818c-414a-b08c-107fccf37edf", | |
"publisherId": "bit.vscode-bit", | |
"publisherDisplayName": "bit" | |
}, | |
"name": "vscode-bit", | |
"publisher": "bit", | |
"version": "0.0.3" | |
}, | |
{ | |
"metadata": { | |
"id": "55ef6448-487b-49a0-a66e-4d2d9bb82229", | |
"publisherId": "Prisma.vscode-graphql", | |
"publisherDisplayName": "Prisma" | |
}, | |
"name": "vscode-graphql", | |
"publisher": "Prisma", | |
"version": "0.2.2" | |
}, | |
{ | |
"metadata": { | |
"id": "aaee577c-f062-495a-9816-0cbd442f1d25", | |
"publisherId": "ecmel.vscode-html-css", | |
"publisherDisplayName": "ecmel" | |
}, | |
"name": "vscode-html-css", | |
"publisher": "ecmel", | |
"version": "0.2.3" | |
}, | |
{ | |
"metadata": { | |
"id": "160aa39f-c929-462e-a537-812f5d3ea2d0", | |
"publisherId": "tintinweb.vscode-inline-bookmarks", | |
"publisherDisplayName": "tintinweb" | |
}, | |
"name": "vscode-inline-bookmarks", | |
"publisher": "tintinweb", | |
"version": "0.0.15" | |
}, | |
{ | |
"metadata": { | |
"id": "01f74564-710c-431f-a7df-5c335c3f5384", | |
"publisherId": "visioncan.vscode-jss-snippets", | |
"publisherDisplayName": "visioncan" | |
}, | |
"name": "vscode-jss-snippets", | |
"publisher": "visioncan", | |
"version": "0.2.2" | |
}, | |
{ | |
"metadata": { | |
"id": "c856990a-978d-46eb-aa5e-318cd7bfecc6", | |
"publisherId": "shanoor.vscode-nginx", | |
"publisherDisplayName": "shanoor" | |
}, | |
"name": "vscode-nginx", | |
"publisher": "shanoor", | |
"version": "0.6.0" | |
}, | |
{ | |
"metadata": { | |
"id": "414b2873-c80e-4dc6-9031-bd185cfb3944", | |
"publisherId": "william-voyek.vscode-nginx", | |
"publisherDisplayName": "william-voyek" | |
}, | |
"name": "vscode-nginx", | |
"publisher": "william-voyek", | |
"version": "0.7.2" | |
}, | |
{ | |
"metadata": { | |
"id": "c3d3e8fb-c61d-4edf-8fb8-32298bc763f9", | |
"publisherId": "hangxingliu.vscode-nginx-conf-hint", | |
"publisherDisplayName": "hangxingliu" | |
}, | |
"name": "vscode-nginx-conf-hint", | |
"publisher": "hangxingliu", | |
"version": "0.1.0" | |
}, | |
{ | |
"metadata": { | |
"id": "b5e06874-8d38-430a-9158-417b450b3fec", | |
"publisherId": "weffe.vscode-react-ts-snippets", | |
"publisherDisplayName": "weffe" | |
}, | |
"name": "vscode-react-ts-snippets", | |
"publisher": "weffe", | |
"version": "2.1.0" | |
}, | |
{ | |
"metadata": { | |
"id": "beb68b20-7c55-471c-9b63-3486f9423566", | |
"publisherId": "mrmlnc.vscode-scss", | |
"publisherDisplayName": "mrmlnc" | |
}, | |
"name": "vscode-scss", | |
"publisher": "mrmlnc", | |
"version": "0.9.0" | |
}, | |
{ | |
"metadata": { | |
"id": "020e14e4-3f0d-41d4-901d-4d28c9775544", | |
"publisherId": "gamunu.vscode-yarn", | |
"publisherDisplayName": "gamunu" | |
}, | |
"name": "vscode-yarn", | |
"publisher": "gamunu", | |
"version": "1.7.0" | |
}, | |
{ | |
"metadata": { | |
"id": "b44254a5-aaf6-4ce2-8bbc-9a3f5aa21a02", | |
"publisherId": "mariusschulz.yarn-lock-syntax", | |
"publisherDisplayName": "mariusschulz" | |
}, | |
"name": "yarn-lock-syntax", | |
"publisher": "mariusschulz", | |
"version": "0.1.3" | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Empty |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"key": "cmd+p", | |
"command": "-workbench.action.quickOpenNavigateNextInFilePicker", | |
"when": "inFilesPicker && inQuickOpen" | |
}, | |
{ | |
"key": "shift+cmd+o", | |
"command": "workbench.action.quickOpen" | |
}, | |
{ | |
"key": "cmd+p", | |
"command": "-workbench.action.quickOpen" | |
}, | |
{ | |
"key": "shift+cmd+o", | |
"command": "-workbench.action.gotoSymbol" | |
}, | |
{ | |
"key": "shift+cmd+down", | |
"command": "-workbench.action.terminal.selectToNextCommand", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "shift+cmd+down", | |
"command": "-cursorBottomSelect", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "cmd+d", | |
"command": "editor.action.copyLinesDownAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "shift+alt+down", | |
"command": "-editor.action.copyLinesDownAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ "key": "cmd+k", | |
"command": "workbench.action.terminal.clear", | |
"when": "terminalFocus" | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"explorer.confirmDelete": false, | |
"window.zoomLevel": 0, | |
"[json]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"For Loop: ES6": { | |
"prefix": "loop", | |
"body": [ | |
"for (let i = 0; i < $ARRAY.length; i++) {", | |
" ", | |
" let obj = $ARRAY[i]", | |
" $END", | |
" ", | |
"}" | |
], | |
"description": "loop through array" | |
}, | |
"For Loop: ES5": { | |
"prefix": "varloop", | |
"body": [ | |
"for (var i = 0; i < ${2:array}.length; i++) { ", | |
" ", | |
" var obj = ${2:array}[i]", | |
" $0", | |
" ", | |
"}" | |
], | |
"description": "for (var i = 0; i < 5; i++) { }" | |
}, | |
"doc_private": { | |
"prefix": "docp", | |
"body": [ | |
"/**", | |
" * @private", | |
" * @name $1", | |
" * @constructor", | |
" * @category $2", | |
" * @param {$3} $4", | |
" * @returns {$5} $0", | |
" *", | |
" * */" | |
], | |
"description": "JS Docs syntax for private constructor" | |
}, | |
"doc_static": { | |
"prefix": "doc", | |
"body": [ | |
"/**", | |
" * $1", | |
" *", | |
" * @static", | |
" * @memberOf $2", | |
" * @category $3", | |
" * @param {$4} $5", | |
" * @example", | |
" * $0", | |
" *", | |
" * */" | |
], | |
"description": "JS Docs syntax for static method" | |
}, | |
"note": { | |
"prefix": "note", | |
"body": [ | |
"/**", | |
" * @param {{$var:$typeof$}} $description", | |
" * */" | |
], | |
"description": "/** type note */" | |
}, | |
"log": { | |
"prefix": "log", | |
"body": [ | |
"console.log($item)" | |
], | |
"description": "console.log( );" | |
}, | |
"jstring": { | |
"prefix": "jstring", | |
"body": [ | |
"console.log(JSON.stringify($item, null, 2))" | |
], | |
"description": "console.log(JSON.stringify( ));" | |
}, | |
"err": { | |
"prefix": "err", | |
"body": [ | |
"console.error('$desc: $item', $item);" | |
], | |
"description": "console.error( );" | |
}, | |
"logd": { | |
"prefix": "logd", | |
"body": [ | |
"console.log('$desc: $item', $item)" | |
], | |
"description": "console.log( ); with description" | |
}, | |
"logl": { | |
"prefix": "logl", | |
"body": [ | |
"console.log('$item.length', $item.length)" | |
], | |
"description": "console.log( ); arr.length" | |
}, | |
"bug": { | |
"prefix": "bug", | |
"body": [ | |
"debugger" | |
], | |
"description": "debugger" | |
}, | |
"dloop": { | |
"prefix": "dloop", | |
"body": [ | |
"for (let i = 0; i < $ARRAY.length; i++) {", | |
" for (let d = 0; d < $ARRAY.length; d++) {", | |
" let i_Obj = $ARRAY[i]", | |
" let d_Obj = $ARRAY[i].$SUBARRAY$[d]", | |
" $0", | |
" }", | |
"}" | |
], | |
"description": "nested double loop" | |
}, | |
"aa": { | |
"prefix": "aa", | |
"body": [ | |
"export function $FUNCNAME() {", | |
" return {", | |
" type: '$ACTION',", | |
" payload: $PAYLOAD", | |
" }", | |
"}" | |
], | |
"description": "action" | |
}, | |
"slog": { | |
"prefix": "slog", | |
"body": [ | |
"console.log('_____________$desc', $item);" | |
], | |
"description": "console.log(___________item, item )" | |
}, | |
"red": { | |
"prefix": "red", | |
"body": [ | |
"log.red($item)" | |
], | |
"description": "log.red( );" | |
}, | |
"blue": { | |
"prefix": "blue", | |
"body": [ | |
"log.blue($item)" | |
], | |
"description": "log.blue( );" | |
}, | |
"green": { | |
"prefix": "green", | |
"body": [ | |
"log.green($item)" | |
], | |
"description": "log.green( );" | |
}, | |
"ltime": { | |
"prefix": "ltime", | |
"body": [ | |
"/** LOAD TIME $name ======================================================== */", | |
"let __load_time_$name = (new Date() - __start_time) / 1000", | |
"console.log('__load_time_$name', __load_time_$name + 'sec')" | |
], | |
"description": "load time tester" | |
}, | |
"bind": { | |
"prefix": "bind", | |
"body": [ | |
"this.$name = this.$name.bind(this)" | |
], | |
"description": "React bind(this)" | |
}, | |
"action": { | |
"prefix": "action", | |
"body": [ | |
"export function $nam ($arg1) {", | |
" return {", | |
" type: '$action',", | |
" payload: $arg1", | |
" }", | |
"}" | |
], | |
"description": "action export function" | |
}, | |
"mag": { | |
"prefix": "mag", | |
"body": [ | |
"log.magenta($item)" | |
], | |
"description": "log.magenta( );" | |
}, | |
"try": { | |
"prefix": "tryc", | |
"body": [ | |
"try { ", | |
" $0", | |
"} catch (err) {", | |
" _error('$method_name', err)", | |
"}" | |
], | |
"description": "try catch" | |
}, | |
"aasync": { | |
"prefix": "aasync", | |
"body": [ | |
"(async function () {", | |
" try {", | |
" $whatevs", | |
" } catch (err) {", | |
" _error('anonymous async', err)", | |
" }", | |
"})();" | |
], | |
"description": "anonomous async await function" | |
}, | |
"lw": { | |
"prefix": "yellow", | |
"body": [ | |
"log.lightYellow($item)" | |
], | |
"description": "log.yellow();" | |
}, | |
"cyan": { | |
"prefix": "cyan", | |
"body": [ | |
"log.cyan($item)" | |
], | |
"description": "log.cyan()" | |
}, | |
"black": { | |
"prefix": "black", | |
"body": [ | |
"log.black($item)" | |
], | |
"description": "log.black()" | |
}, | |
"gray": { | |
"prefix": "gray", | |
"body": [ | |
"log.lightGray($item)" | |
], | |
"description": "log.lightGray()" | |
}, | |
"pink": { | |
"prefix": "pink", | |
"body": [ | |
"log.lightRed($item)" | |
], | |
"description": "log.lightRed()" | |
}, | |
"bb": { | |
"prefix": "bb", | |
"body": [ | |
"log.lightBlue($item)" | |
], | |
"description": "log.lightBlue()" | |
}, | |
"olo": { | |
"prefix": "olo", | |
"body": [ | |
"// npm install @flavioespinoza/log_log --save", | |
"const _log = require('@flavioespinoza/log_log')._log", | |
"const log = require('@flavioespinoza/log_log').log" | |
], | |
"description": "ololog" | |
}, | |
"tools": { | |
"prefix": "tools", | |
"body": [ | |
"const _ = require('lodash')", | |
"const Chance = require('chance')", | |
"const chance = new Chance()", | |
"const axios = require('axios')" | |
], | |
"description": "base node tools" | |
}, | |
"mtools": { | |
"prefix": "bittrex_tools", | |
"body": [ | |
"const log = require('ololog').configure({locate: false})", | |
"const _ = require('lodash')", | |
"const Chance = require('chance')", | |
"const chance = new Chance()", | |
"", | |
"const MongoClient = require('mongodb').MongoClient", | |
"const db_url = 'mongodb://localhost:27017/'", | |
"", | |
"const db_name = 'bittrex_db'", | |
"const collection = 'orders_cl'", | |
"const options = {useNewUrlParser: true}" | |
], | |
"description": "mongodb default tools" | |
}, | |
"ii": { | |
"prefix": "ii", | |
"body": [ | |
"${VARIABLE$}" | |
], | |
"description": "Insert in string" | |
}, | |
"af": { | |
"prefix": "af", | |
"body": [ | |
"async function $name ($arg1) {", | |
" try {", | |
" $0", | |
" } catch (err) {", | |
" _error('$name', err)", | |
" }", | |
"}" | |
], | |
"description": "async function" | |
}, | |
"aloop": { | |
"prefix": "aloop", | |
"body": [ | |
"const result = []", | |
"", | |
"await async.each($array, async (obj) => {", | |
" const $wait_var = await $async_func(obj)", | |
" result.push($wait_var)", | |
"})", | |
"", | |
"console.log('result', result)" | |
], | |
"description": "async loop" | |
}, | |
"ess": { | |
"prefix": "ess", | |
"body": [ | |
"const elasticsearch = require('elasticsearch')", | |
"const es = new elasticsearch.Client({", | |
" host: 'localhost:9200',", | |
" hosts: [{", | |
" protocol: 'http',", | |
" host: '$ip',", | |
" port: 9200,", | |
" country: 'US',", | |
" weight: 10", | |
" }],", | |
" log: 'trace'", | |
"})" | |
], | |
"description": "Elasticsearch" | |
}, | |
"arr": { | |
"prefix": "arr", | |
"body": [ | |
"(obj) => {", | |
" $0", | |
"}" | |
], | |
"description": "Arrow function" | |
}, | |
"pa": { | |
"prefix": "pa", | |
"body": [ | |
"@param {{$var:$typeof$}} $description" | |
], | |
"description": "@param" | |
}, | |
"React Basic Component": { | |
"prefix": "react", | |
"body": [ | |
"import React from 'react'", | |
"", | |
"class $CompName extends React.Component {", | |
" constructor (props) {", | |
" super(props)", | |
"", | |
" this.state = {", | |
" comp_name: '$CompName',", | |
" $my_new_prop: '$my_new_prop_value'", | |
" }", | |
"", | |
" };", | |
"", | |
" render () {", | |
"", | |
" const { comp_name, $my_new_prop } = this.state", | |
"", | |
" return (", | |
" <section> ", | |
" My Name Is: {comp_name} ", | |
"", | |
" <div>$my_new_prop {$my_new_prop}</div>", | |
" ", | |
" </section>", | |
" ", | |
" )", | |
" };", | |
"", | |
"}", | |
"", | |
"export { $CompName }" | |
], | |
"description": "React bare bones component" | |
}, | |
"tsdeclare": { | |
"body": [ | |
"/// <reference path='./custom.d.ts' />" | |
] | |
}, | |
"d.ts": { | |
"prefix": "dts", | |
"body": [ | |
"/// <reference path='./custom.d.ts' />", | |
"" | |
], | |
"description": "" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bash": { | |
"prefix": "bash", | |
"body": [ | |
"$1", | |
"```bash", | |
"$2", | |
"```", | |
"$0" | |
], | |
"description": "bash code block" | |
}, | |
"shell": { | |
"prefix": "shell", | |
"body": [ | |
"$1", | |
"```shell", | |
"$2", | |
"```", | |
"$0" | |
], | |
"description": "shell code block" | |
}, | |
"json": { | |
"prefix": "json", | |
"body": [ | |
"$1", | |
"```json", | |
"$2", | |
"```", | |
"$0" | |
], | |
"description": "json code block" | |
}, | |
"js": { | |
"prefix": "js", | |
"body": [ | |
"$1", | |
"```js", | |
"$2", | |
"```", | |
"$0" | |
], | |
"description": "js code block" | |
}, | |
"ts": { | |
"prefix": "ts", | |
"body": [ | |
"$1", | |
"```ts", | |
"$2", | |
"```", | |
"$0" | |
], | |
"description": "ts code block" | |
}, | |
"go": { | |
"prefix": "go", | |
"body": [ | |
"$1", | |
"```go", | |
"$2", | |
"```", | |
"$0" | |
], | |
"description": "go code block" | |
}, | |
"graphql": { | |
"prefix": "graphql", | |
"body": [ | |
"$1", | |
"```graphql", | |
"$2", | |
"```", | |
"$0" | |
], | |
"description": "graphql code block" | |
}, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"for i loop": { | |
"prefix": "loop", | |
"body": [ | |
"for (let i = 0; i < array.length; i++) { ", | |
" ", | |
" let obj = array[i]", | |
" '\\t$0'", | |
" ", | |
"}" | |
], | |
"description": "" | |
}, | |
"loops": { | |
"prefix": "cock", | |
"body": [ | |
"for (let i = 0; i < array.length; i++) { ", | |
" ", | |
" let obj = array[i]", | |
" '$0'", | |
" ", | |
"}" | |
], | |
"description": "" | |
}, | |
"rbcballs": { | |
"prefix": "rbcc", | |
"body": [ | |
"import React from 'react'", | |
"", | |
"class $ComponentName extends React.Component {", | |
" constructor (props) {", | |
" super(props)", | |
"", | |
" this.state = {", | |
" name: '$ComponentName'", | |
" }", | |
"", | |
" };", | |
"", | |
" render () {", | |
" return (", | |
" <div> Hello $ComponentName </div>", | |
" )", | |
" };", | |
"", | |
"}", | |
"", | |
"export default $ComponentName" | |
], | |
"description": "" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file is generated by Save As Snippet | |
// For detail, check vscode snippet syntax | |
// https://code.visualstudio.com/docs/editor/userdefinedsnippets#_creating-your-own-snippets | |
{ | |
"tscomp": { | |
"prefix": "tscomp", | |
"scope": "typescriptreact", | |
"body": [ | |
"import * as React from 'react'", | |
"", | |
"interface Props {}", | |
"", | |
"interface State {}", | |
"", | |
"class $DashBoard extends React.Component<Props, State>{", | |
"\tconstructor (props: Props) {", | |
"\t\tsuper(props)", | |
"\t\tthis.state = {}", | |
"\t}", | |
"\trender () {", | |
"\t\treturn (", | |
"\t\t\t<section> ", | |
"\t\t\t", | |
"\t\t\t\t<h2>Hello $DashBoard</h2>", | |
"\t\t\t", | |
"\t\t\t</section>", | |
"\t\t)", | |
"\t}", | |
"}", | |
"", | |
"export default $DashBoard" | |
], | |
"description": "tscomp" | |
}, | |
"rbc": { | |
"prefix": "rbc", | |
"scope": "typescriptreact", | |
"body": [ | |
"import * as React from 'react'", | |
"", | |
"interface Props {}", | |
"", | |
"interface State {}", | |
"", | |
"class $DashBoard extends React.Component<Props, State>{", | |
"\tconstructor (props: Props) {", | |
"\t\tsuper(props)", | |
"\t\tthis.state = {}", | |
"\t}", | |
"\trender () {", | |
"\t\treturn (", | |
"\t\t\t<section> ", | |
"\t\t\t", | |
"\t\t\t\t<h2>Hello $DashBoard</h2>", | |
"\t\t\t", | |
"\t\t\t</section>", | |
"\t\t)", | |
"\t}", | |
"}", | |
"", | |
"export default $DashBoard" | |
], | |
"description": "rbc" | |
}, | |
"rhook": { | |
"prefix": "rhook", | |
"scope": "javascriptreact", | |
"body": [ | |
"import * as React from 'react';", | |
"import { makeStyles } from '@material-ui/core/styles';", | |
"import selectStyles from 'assets/jss/material-dashboard-pro-react/views/selectStyles';", | |
"import Card from 'components/Card/Card';", | |
"import CardQuick from 'components/Card/CardQuick';", | |
"import Button from 'components/CustomButtons/Button';", | |
"import GridContainer from 'components/Grid/GridContainer';", | |
"import GridItem from 'components/Grid/GridItem';", | |
"import { Link } from 'react-router-dom';", | |
"import request from 'request';", | |
"import log from 'ololog';", | |
"import ReactJson from 'react-json-view';", | |
"", | |
"const useStyles = makeStyles((theme) => {", | |
" return selectStyles(theme);", | |
"});", | |
"", | |
"const $CompName = ({ ...props }) => {", | |
" const { ...prop } = props;", | |
" const classes = useStyles();", | |
" const [jsonProps, setJsonProps] = React.useState(null);", | |
" const title = '$CompName';", | |
"", | |
" const _handleClick = () => {", | |
" let _json = JSON.stringify(props, null, 2);", | |
" log.blue(_json);", | |
" setJsonProps(_json);", | |
" };", | |
"", | |
" const _openid = (qs) => {", | |
" const origin = window.location.origin;", | |
" const route = '$Route'", | |
" const url = origin + '/api/' + route;", | |
" const options = {", | |
" method: 'POST',", | |
" url: url,", | |
" qs: qs,", | |
" };", | |
" request(options, function(error, response, body) {", | |
" if (error) throw new Error(error);", | |
" const _body = JSON.parse(body);", | |
" console.log(`route: ${url} --> _body`, _body);", | |
" });", | |
" };", | |
"", | |
" return (", | |
" <section className={classes.container}>", | |
" <GridContainer justify=\"center\">", | |
" <GridItem xs={12} sm={6}>", | |
" <Card className={'authnet-card p24'}>", | |
" <CardQuick", | |
" {...{", | |
" title: title,", | |
" iconAwesome: true,", | |
" icon: 'fad fa-$Icon',", | |
" color: 'info',", | |
" }}", | |
" />", | |
" <h1 className={'mt4 mb4'}>{title}</h1>", | |
" <Button color={'info'} onClick={_handleClick}>", | |
" Click Me to view props", | |
" </Button>", | |
" <div>{jsonProps}</div>", | |
" </Card>", | |
" </GridItem>", | |
" </GridContainer>", | |
" </section>", | |
" );", | |
"};", | |
"", | |
"export default $CompName;", | |
"" | |
], | |
"description": "Default React Hook" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Shell Error": { | |
"prefix": "shellerror", | |
"body": [ | |
"<label class=\"error bold\">Error</label>", | |
"```shell {.error}", | |
"# error", | |
"", | |
"adb: failed to stat app/build/outputs/apk/app-debug.apk: No such file or directory", | |
"", | |
"Command failed: /usr/local/share/android-sdk/platform-tools/adb -s 192.168.56.101:5555 install app/build/outputs/apk/app-debug.apk", | |
"", | |
"Could not install the app on the device, read the error above for details.", | |
"```" | |
], | |
"description": "Shell Error" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"For Loop: ES6": { | |
"prefix": "loop", | |
"body": [ | |
"for (let i = 0; i < $ARRAY.length; i++) {", | |
" ", | |
" let obj = $ARRAY[i]", | |
" $END", | |
" ", | |
"}" | |
], | |
"description": "loop through array" | |
}, | |
"d.ts": { | |
"prefix": "dts", | |
"body": [ | |
"/// <reference path='./custom.d.ts' />" | |
], | |
"description": "ds" | |
}, | |
"For Loop: ES5": { | |
"prefix": "varloop", | |
"body": [ | |
"for (var i = 0; i < ${2:array}.length; i++) { ", | |
" ", | |
" var obj = ${2:array}[i]", | |
" $0", | |
" ", | |
"}" | |
], | |
"description": "for (var i = 0; i < 5; i++) { }" | |
}, | |
"note": { | |
"prefix": "note", | |
"body": [ | |
"/**", | |
" * @param {{$var:$typeof$}} $description", | |
" * */" | |
], | |
"description": "/** type note */" | |
}, | |
"log": { | |
"prefix": "log", | |
"body": [ | |
"console.log($item)" | |
], | |
"description": "console.log( );" | |
}, | |
"jstring": { | |
"prefix": "jstring", | |
"body": [ | |
"console.log(JSON.stringify($item, null, 2))" | |
], | |
"description": "console.log(JSON.stringify( ));" | |
}, | |
"err": { | |
"prefix": "err", | |
"body": [ | |
"console.error('$desc: $item', $item);" | |
], | |
"description": "console.error( );" | |
}, | |
"logd": { | |
"prefix": "logd", | |
"body": [ | |
"console.log('$desc: $item', $item)" | |
], | |
"description": "console.log( ); with description" | |
}, | |
"logl": { | |
"prefix": "logl", | |
"body": [ | |
"console.log('$item.length', $item.length)" | |
], | |
"description": "console.log( ); arr.length" | |
}, | |
"bug": { | |
"prefix": "bug", | |
"body": [ | |
"debugger" | |
], | |
"description": "debugger" | |
}, | |
"dloop": { | |
"prefix": "dloop", | |
"body": [ | |
"for (let i = 0; i < $ARRAY.length; i++) {", | |
" for (let d = 0; d < $ARRAY.length; d++) {", | |
" let i_Obj = $ARRAY[i]", | |
" let d_Obj = $ARRAY[i].$SUBARRAY$[d]", | |
" $0", | |
" }", | |
"}" | |
], | |
"description": "nested double loop" | |
}, | |
"aa": { | |
"prefix": "aa", | |
"body": [ | |
"export function $FUNCNAME() {", | |
" return {", | |
" type: '$ACTION',", | |
" payload: $PAYLOAD", | |
" }", | |
"}" | |
], | |
"description": "action" | |
}, | |
"slog": { | |
"prefix": "slog", | |
"body": [ | |
"console.log('_____________$desc', $item);" | |
], | |
"description": "console.log(___________item, item )" | |
}, | |
"red": { | |
"prefix": "red", | |
"body": [ | |
"log.red($item)" | |
], | |
"description": "log.red( );" | |
}, | |
"blue": { | |
"prefix": "blue", | |
"body": [ | |
"log.blue($item)" | |
], | |
"description": "log.blue( );" | |
}, | |
"green": { | |
"prefix": "green", | |
"body": [ | |
"log.green($item)" | |
], | |
"description": "log.green( );" | |
}, | |
"ltime": { | |
"prefix": "ltime", | |
"body": [ | |
"/** LOAD TIME $name ======================================================== */", | |
"let __load_time_$name = (new Date() - __start_time) / 1000", | |
"console.log('__load_time_$name', __load_time_$name + 'sec')" | |
], | |
"description": "load time tester" | |
}, | |
"bind": { | |
"prefix": "bind", | |
"body": [ | |
"this.$name = this.$name.bind(this)" | |
], | |
"description": "React bind(this)" | |
}, | |
"action": { | |
"prefix": "action", | |
"body": [ | |
"export function $nam ($arg1) {", | |
" return {", | |
" type: '$action',", | |
" payload: $arg1", | |
" }", | |
"}" | |
], | |
"description": "action export function" | |
}, | |
"mag": { | |
"prefix": "mag", | |
"body": [ | |
"log.magenta($item)" | |
], | |
"description": "log.magenta( );" | |
}, | |
"try": { | |
"prefix": "tryc", | |
"body": [ | |
"try { ", | |
" $0", | |
"} catch (err) {", | |
" _error('$method_name', err)", | |
"}" | |
], | |
"description": "try catch" | |
}, | |
"aasync": { | |
"prefix": "aasync", | |
"body": [ | |
"(async function () {", | |
" try {", | |
" $whatevs", | |
" } catch (err) {", | |
" _error('anonymous async', err)", | |
" }", | |
"})();" | |
], | |
"description": "anonomous async await function" | |
}, | |
"lw": { | |
"prefix": "yellow", | |
"body": [ | |
"log.lightYellow($item)" | |
], | |
"description": "log.yellow();" | |
}, | |
"cyan": { | |
"prefix": "cyan", | |
"body": [ | |
"log.cyan($item)" | |
], | |
"description": "log.cyan()" | |
}, | |
"black": { | |
"prefix": "black", | |
"body": [ | |
"log.black($item)" | |
], | |
"description": "log.black()" | |
}, | |
"gray": { | |
"prefix": "gray", | |
"body": [ | |
"log.lightGray($item)" | |
], | |
"description": "log.lightGray()" | |
}, | |
"pink": { | |
"prefix": "pink", | |
"body": [ | |
"log.lightRed($item)" | |
], | |
"description": "log.lightRed()" | |
}, | |
"bb": { | |
"prefix": "bb", | |
"body": [ | |
"log.lightBlue($item)" | |
], | |
"description": "log.lightBlue()" | |
}, | |
"olo": { | |
"prefix": "olo", | |
"body": [ | |
"// npm install @flavioespinoza/log_log --save", | |
"const _log = require('@flavioespinoza/log_log')._log", | |
"const log = require('@flavioespinoza/log_log').log" | |
], | |
"description": "ololog" | |
}, | |
"tools": { | |
"prefix": "tools", | |
"body": [ | |
"const _ = require('lodash')", | |
"const Chance = require('chance')", | |
"const chance = new Chance()", | |
"const axios = require('axios')" | |
], | |
"description": "base node tools" | |
}, | |
"mtools": { | |
"prefix": "bittrex_tools", | |
"body": [ | |
"const log = require('ololog').configure({locate: false})", | |
"const _ = require('lodash')", | |
"const Chance = require('chance')", | |
"const chance = new Chance()", | |
"", | |
"const MongoClient = require('mongodb').MongoClient", | |
"const db_url = 'mongodb://localhost:27017/'", | |
"", | |
"const db_name = 'bittrex_db'", | |
"const collection = 'orders_cl'", | |
"const options = {useNewUrlParser: true}" | |
], | |
"description": "mongodb default tools" | |
}, | |
"ii": { | |
"prefix": "ii", | |
"body": [ | |
"${VARIABLE$}" | |
], | |
"description": "Insert in string" | |
}, | |
"af": { | |
"prefix": "af", | |
"body": [ | |
"async function $name ($arg1) {", | |
" try {", | |
" $0", | |
" } catch (err) {", | |
" _error('$name', err)", | |
" }", | |
"}" | |
], | |
"description": "async function" | |
}, | |
"aloop": { | |
"prefix": "aloop", | |
"body": [ | |
"const result = []", | |
"", | |
"await async.each($array, async (obj) => {", | |
" const $wait_var = await $async_func(obj)", | |
" result.push($wait_var)", | |
"})", | |
"", | |
"console.log('result', result)" | |
], | |
"description": "async loop" | |
}, | |
"ess": { | |
"prefix": "ess", | |
"body": [ | |
"const elasticsearch = require('elasticsearch')", | |
"const es = new elasticsearch.Client({", | |
" host: 'localhost:9200',", | |
" hosts: [{", | |
" protocol: 'http',", | |
" host: '$ip',", | |
" port: 9200,", | |
" country: 'US',", | |
" weight: 10", | |
" }],", | |
" log: 'trace'", | |
"})" | |
], | |
"description": "Elasticsearch" | |
}, | |
"Arrow Obj": { | |
"prefix": "objarr", | |
"body": [ | |
"(obj) => {", | |
" $0", | |
"}" | |
], | |
"description": "Arrow function with obj arg" | |
}, | |
"Arrow": { | |
"prefix": "arr", | |
"body": [ | |
"() => {", | |
" $0", | |
"}" | |
], | |
"description": "Arrow function" | |
}, | |
"pa": { | |
"prefix": "pa", | |
"body": [ | |
"@param {{$var:$typeof$}} $description" | |
], | |
"description": "@param" | |
}, | |
"Props State interface": { | |
"prefix": "nativeprops", | |
"body": [ | |
"interface Props {}\r", | |
"\r", | |
"interface State {}" | |
], | |
"description": "interface Props and State for React.tsx component" | |
}, | |
"React Native Typescript StyleSheet": { | |
"prefix": "nativestyle", | |
"body": [ | |
"import { StyleSheet } from 'react-native'\r", | |
"\r", | |
"const Style = StyleSheet.create({\r", | |
" text: {\r", | |
" fontSize: 12,\r", | |
" textAlign: 'center',\r", | |
" margin: 10\r", | |
" },\r", | |
" container: {\r", | |
" flex: 1,\r", | |
" width: '100%'\r", | |
" }\r", | |
"})\r", | |
"\r", | |
"export { Style }" | |
], | |
"description": "React Native Typescript StyleSheet" | |
}, | |
"React Native Typescript Component": { | |
"prefix": "nativecomp", | |
"body": [ | |
"import * as React from 'react'", | |
"import { View, Text } from 'react-native'", | |
"import { Style } from './$CompName.style'", | |
"", | |
"interface Props {}", | |
"", | |
"interface State {", | |
" compName: string | undefined", | |
"}", | |
"", | |
"class $CompName extends React.PureComponent<Props, State> {", | |
" constructor(props: Props) {", | |
" super(props)", | |
"", | |
" this.state = {", | |
" compName: '$CompName'", | |
" }", | |
" }", | |
"", | |
" render() {", | |
" return (", | |
" <View style={Style.container}>", | |
" <Text style={Style.text}>Hello {this.state.compName}</Text>", | |
" </View>", | |
" )", | |
" }", | |
"}", | |
"", | |
"export default $CompName" | |
], | |
"description": "React Native Typescr∂ipt Basic Component" | |
}, | |
"Shell Error": { | |
"prefix": "shellerror", | |
"body": [ | |
"<label class=\"error bold\">Error</label>", | |
"```shell {.error}", | |
"# error", | |
"", | |
"adb: failed to stat app/build/outputs/apk/app-debug.apk: No such file or directory", | |
"", | |
"Command failed: /usr/local/share/android-sdk/platform-tools/adb -s 192.168.56.101:5555 install app/build/outputs/apk/app-debug.apk", | |
"", | |
"Could not install the app on the device, read the error above for details.", | |
"```" | |
], | |
"description": "Shell Error" | |
}, | |
"Graphql to Typescript": { | |
"prefix": "int", | |
"body": [ | |
"interface $Name {\r", | |
"\r", | |
"}" | |
], | |
"description": "GraphQL schema types translated to TypeScript interface" | |
}, | |
"<a> tag markdown": { | |
"prefix": "mdatag", | |
"body": [ | |
"<a class='md-link-bold' target='_blank' href='https://developer.apple.com/videos/play/wwdc2018/415/'>", | |
" Xcode build sequence", | |
" </a>" | |
], | |
"description": "" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Graphql Typescript": { | |
"prefix": "intt", | |
"body": [ | |
"interface Int {\r", | |
"\r", | |
"}" | |
], | |
"description": "afds" | |
}, | |
"undefined": { | |
"body": [ | |
"/// <reference path='./custom.d.ts' />" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment