Last active
February 11, 2021 18:48
-
-
Save MattPostlethwaite/aed574328f8fb536934ad1823b1afc9e to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
This file contains 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":"2021-01-23T10:01:45.042Z","extensionVersion":"v3.4.3"} |
This file contains 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": "d4be9b84-09b5-42d9-83e3-a0135f3a807c", | |
"publisherId": "anthonydiametrix.ACF-Snippet", | |
"publisherDisplayName": "anthonydiametrix" | |
}, | |
"name": "ACF-Snippet", | |
"publisher": "anthonydiametrix", | |
"version": "1.9.0" | |
}, | |
{ | |
"metadata": { | |
"id": "d3836729-9cc1-42c1-b2af-d50071f57d29", | |
"publisherId": "formulahendry.auto-close-tag", | |
"publisherDisplayName": "formulahendry" | |
}, | |
"name": "auto-close-tag", | |
"publisher": "formulahendry", | |
"version": "0.5.10" | |
}, | |
{ | |
"metadata": { | |
"id": "f583eafd-aa0d-4ccb-8f44-d1e610389660", | |
"publisherId": "CoenraadS.bracket-pair-colorizer", | |
"publisherDisplayName": "CoenraadS" | |
}, | |
"name": "bracket-pair-colorizer", | |
"publisher": "CoenraadS", | |
"version": "1.0.61" | |
}, | |
{ | |
"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": "a6c97efe-981d-4eee-a0bd-5ffd1dc807f1", | |
"publisherId": "codespaces-contrib.codeswing", | |
"publisherDisplayName": "codespaces-contrib" | |
}, | |
"name": "codeswing", | |
"publisher": "codespaces-contrib", | |
"version": "0.0.7" | |
}, | |
{ | |
"metadata": { | |
"id": "1d9b1776-4188-4b43-b23f-bab3d47537e9", | |
"publisherId": "vsls-contrib.codetour", | |
"publisherDisplayName": "vsls-contrib" | |
}, | |
"name": "codetour", | |
"publisher": "vsls-contrib", | |
"version": "0.0.42" | |
}, | |
{ | |
"metadata": { | |
"id": "f60a60a6-95ba-42d4-b41c-3d24c1b89588", | |
"publisherId": "EditorConfig.EditorConfig", | |
"publisherDisplayName": "EditorConfig" | |
}, | |
"name": "EditorConfig", | |
"publisher": "EditorConfig", | |
"version": "0.16.4" | |
}, | |
{ | |
"metadata": { | |
"id": "081cd2e9-bc51-4ea3-977e-544bed2e33a8", | |
"publisherId": "bierner.emojisense", | |
"publisherDisplayName": "bierner" | |
}, | |
"name": "emojisense", | |
"publisher": "bierner", | |
"version": "0.8.0" | |
}, | |
{ | |
"metadata": { | |
"id": "0cfb9d1d-3e59-4c36-a597-157b54e4442b", | |
"publisherId": "vsls-contrib.gistfs", | |
"publisherDisplayName": "vsls-contrib" | |
}, | |
"name": "gistfs", | |
"publisher": "vsls-contrib", | |
"version": "0.2.1" | |
}, | |
{ | |
"metadata": { | |
"id": "4de763bd-505d-4978-9575-2b7696ecf94e", | |
"publisherId": "eamodio.gitlens", | |
"publisherDisplayName": "eamodio" | |
}, | |
"name": "gitlens", | |
"publisher": "eamodio", | |
"version": "11.1.3" | |
}, | |
{ | |
"metadata": { | |
"id": "a96acff8-5197-43a6-b07c-d4d178558e56", | |
"publisherId": "neilding.language-liquid", | |
"publisherDisplayName": "neilding" | |
}, | |
"name": "language-liquid", | |
"publisher": "neilding", | |
"version": "0.1.1" | |
}, | |
{ | |
"metadata": { | |
"id": "b63c44fd-0457-4696-99e9-dbfdf70d77de", | |
"publisherId": "ritwickdey.LiveServer", | |
"publisherDisplayName": "ritwickdey" | |
}, | |
"name": "LiveServer", | |
"publisher": "ritwickdey", | |
"version": "5.6.1" | |
}, | |
{ | |
"metadata": { | |
"id": "489abeb0-400c-4a08-bde4-cf5d9b863a32", | |
"publisherId": "Tyriar.lorem-ipsum", | |
"publisherDisplayName": "Tyriar" | |
}, | |
"name": "lorem-ipsum", | |
"publisher": "Tyriar", | |
"version": "1.2.0" | |
}, | |
{ | |
"metadata": { | |
"id": "b0db4123-c5d9-4f45-bd2e-70738ebbb304", | |
"publisherId": "bierner.markdown-checkbox", | |
"publisherDisplayName": "bierner" | |
}, | |
"name": "markdown-checkbox", | |
"publisher": "bierner", | |
"version": "0.1.3" | |
}, | |
{ | |
"metadata": { | |
"id": "5db78037-f674-459f-a236-db622c427c5b", | |
"publisherId": "PKief.material-icon-theme", | |
"publisherDisplayName": "PKief" | |
}, | |
"name": "material-icon-theme", | |
"publisher": "PKief", | |
"version": "4.5.0" | |
}, | |
{ | |
"metadata": { | |
"id": "736c2316-7f4f-4b6a-8e5c-70527d82cf51", | |
"publisherId": "iocave.monkey-patch", | |
"publisherDisplayName": "iocave" | |
}, | |
"name": "monkey-patch", | |
"publisher": "iocave", | |
"version": "0.1.11" | |
}, | |
{ | |
"metadata": { | |
"id": "4655ffe9-87aa-4c8c-83bc-bcfc38b405d5", | |
"publisherId": "morgan-codes.morgan-codes-vscode-theme", | |
"publisherDisplayName": "morgan-codes" | |
}, | |
"name": "morgan-codes-vscode-theme", | |
"publisher": "morgan-codes", | |
"version": "0.0.5" | |
}, | |
{ | |
"metadata": { | |
"id": "4bf45e86-a448-4531-8c01-ef33f4536306", | |
"publisherId": "ms-mssql.mssql", | |
"publisherDisplayName": "ms-mssql" | |
}, | |
"name": "mssql", | |
"publisher": "ms-mssql", | |
"version": "1.10.0" | |
}, | |
{ | |
"metadata": { | |
"id": "e58f546c-babc-455f-a265-ba40dbd140d4", | |
"publisherId": "sdras.night-owl", | |
"publisherDisplayName": "sdras" | |
}, | |
"name": "night-owl", | |
"publisher": "sdras", | |
"version": "2.0.0" | |
}, | |
{ | |
"metadata": { | |
"id": "044b4b31-2969-4af3-895d-855433b8b46d", | |
"publisherId": "felixfbecker.php-debug", | |
"publisherDisplayName": "felixfbecker" | |
}, | |
"name": "php-debug", | |
"publisher": "felixfbecker", | |
"version": "1.14.5" | |
}, | |
{ | |
"metadata": { | |
"id": "ca0094fa-0dc7-4847-ae5d-879442c099ca", | |
"publisherId": "neilbrayfield.php-docblocker", | |
"publisherDisplayName": "neilbrayfield" | |
}, | |
"name": "php-docblocker", | |
"publisher": "neilbrayfield", | |
"version": "2.1.0" | |
}, | |
{ | |
"metadata": { | |
"id": "b0a47156-9132-49a2-bebd-ed16d91b1fa6", | |
"publisherId": "ikappas.phpcs", | |
"publisherDisplayName": "ikappas" | |
}, | |
"name": "phpcs", | |
"publisher": "ikappas", | |
"version": "1.0.5" | |
}, | |
{ | |
"metadata": { | |
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90", | |
"publisherId": "esbenp.prettier-vscode", | |
"publisherDisplayName": "esbenp" | |
}, | |
"name": "prettier-vscode", | |
"publisher": "esbenp", | |
"version": "5.8.0" | |
}, | |
{ | |
"metadata": { | |
"id": "d98e5f51-7378-426a-a4de-ea706b74be7d", | |
"publisherId": "zhucy.project-tree", | |
"publisherDisplayName": "zhucy" | |
}, | |
"name": "project-tree", | |
"publisher": "zhucy", | |
"version": "0.3.0" | |
}, | |
{ | |
"metadata": { | |
"id": "466468c3-1861-4ad1-bf3e-f9ad46545ebb", | |
"publisherId": "syler.sass-indented", | |
"publisherDisplayName": "syler" | |
}, | |
"name": "sass-indented", | |
"publisher": "syler", | |
"version": "1.8.13" | |
}, | |
{ | |
"metadata": { | |
"id": "bfcc4184-7b55-410e-a012-20ee54be9264", | |
"publisherId": "mblode.twig-language-2", | |
"publisherDisplayName": "mblode" | |
}, | |
"name": "twig-language-2", | |
"publisher": "mblode", | |
"version": "0.9.2" | |
}, | |
{ | |
"metadata": { | |
"id": "445ba381-f232-4150-9056-d790bd76d698", | |
"publisherId": "kamikillerto.vscode-colorize", | |
"publisherDisplayName": "kamikillerto" | |
}, | |
"name": "vscode-colorize", | |
"publisher": "kamikillerto", | |
"version": "0.9.2" | |
}, | |
{ | |
"metadata": { | |
"id": "0479fc1c-3d67-49f9-b087-fb9069afe48f", | |
"publisherId": "ms-azuretools.vscode-docker", | |
"publisherDisplayName": "ms-azuretools" | |
}, | |
"name": "vscode-docker", | |
"publisher": "ms-azuretools", | |
"version": "1.9.0" | |
}, | |
{ | |
"metadata": { | |
"id": "72e9b049-d75d-415c-96e1-d6e74f0e3074", | |
"publisherId": "janisdd.vscode-edit-csv", | |
"publisherDisplayName": "janisdd" | |
}, | |
"name": "vscode-edit-csv", | |
"publisher": "janisdd", | |
"version": "0.5.4" | |
}, | |
{ | |
"metadata": { | |
"id": "2fd1d28f-fc2a-4582-8788-2f01febe43a6", | |
"publisherId": "IronGeek.vscode-env", | |
"publisherDisplayName": "IronGeek" | |
}, | |
"name": "vscode-env", | |
"publisher": "IronGeek", | |
"version": "0.1.0" | |
}, | |
{ | |
"metadata": { | |
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a", | |
"publisherId": "dbaeumer.vscode-eslint", | |
"publisherDisplayName": "dbaeumer" | |
}, | |
"name": "vscode-eslint", | |
"publisher": "dbaeumer", | |
"version": "2.1.14" | |
}, | |
{ | |
"metadata": { | |
"id": "ffda6552-0ad5-431b-a4fa-0905a7e4f3f0", | |
"publisherId": "bmewburn.vscode-intelephense-client", | |
"publisherDisplayName": "bmewburn" | |
}, | |
"name": "vscode-intelephense-client", | |
"publisher": "bmewburn", | |
"version": "1.6.2" | |
}, | |
{ | |
"metadata": { | |
"id": "39cefc2f-0175-44db-91f8-fe3230b4c3a1", | |
"publisherId": "killalau.vscode-liquid-snippets", | |
"publisherDisplayName": "killalau" | |
}, | |
"name": "vscode-liquid-snippets", | |
"publisher": "killalau", | |
"version": "2.0.1" | |
}, | |
{ | |
"metadata": { | |
"id": "af8cfc85-cb72-45d0-bae2-9a98cd0c69f3", | |
"publisherId": "JounQin.vscode-mdx", | |
"publisherDisplayName": "JounQin" | |
}, | |
"name": "vscode-mdx", | |
"publisher": "JounQin", | |
"version": "0.2.2" | |
}, | |
{ | |
"metadata": { | |
"id": "b200e7e8-4217-4da9-b8db-5606db56d867", | |
"publisherId": "ckolkman.vscode-postgres", | |
"publisherDisplayName": "ckolkman" | |
}, | |
"name": "vscode-postgres", | |
"publisher": "ckolkman", | |
"version": "1.1.16" | |
}, | |
{ | |
"metadata": { | |
"id": "ec35b5a3-9802-4c68-b5ff-e85f19ec0977", | |
"publisherId": "stylelint.vscode-stylelint", | |
"publisherDisplayName": "stylelint" | |
}, | |
"name": "vscode-stylelint", | |
"publisher": "stylelint", | |
"version": "0.85.0" | |
}, | |
{ | |
"metadata": { | |
"id": "6f5d4f30-67aa-4151-80c0-1bbe8ca5f9db", | |
"publisherId": "cssho.vscode-svgviewer", | |
"publisherDisplayName": "cssho" | |
}, | |
"name": "vscode-svgviewer", | |
"publisher": "cssho", | |
"version": "2.0.0" | |
}, | |
{ | |
"metadata": { | |
"id": "90a37ca1-92a2-488a-b196-7a8c0b0127ea", | |
"publisherId": "ms-vscode.vscode-typescript-tslint-plugin", | |
"publisherDisplayName": "ms-vscode" | |
}, | |
"name": "vscode-typescript-tslint-plugin", | |
"publisher": "ms-vscode", | |
"version": "1.3.3" | |
}, | |
{ | |
"metadata": { | |
"id": "5a6dc0d5-dc02-4121-8e24-cad33a2ff0af", | |
"publisherId": "ms-vsliveshare.vsliveshare", | |
"publisherDisplayName": "ms-vsliveshare" | |
}, | |
"name": "vsliveshare", | |
"publisher": "ms-vsliveshare", | |
"version": "1.0.3484" | |
}, | |
{ | |
"metadata": { | |
"id": "87b7ee15-39a4-4bbe-b4b8-86718c151964", | |
"publisherId": "wordpresstoolbox.wordpress-toolbox", | |
"publisherDisplayName": "wordpresstoolbox" | |
}, | |
"name": "wordpress-toolbox", | |
"publisher": "wordpresstoolbox", | |
"version": "1.3.9" | |
} | |
] |
This file contains 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 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
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "alt+cmd+t", | |
"command": "workbench.action.terminal.new" | |
}, | |
{ | |
"key": "ctrl+shift+`", | |
"command": "-workbench.action.terminal.new" | |
}, | |
{ | |
"key": "shift+alt+cmd+t", | |
"command": "workbench.action.closeOtherEditors" | |
}, | |
{ | |
"key": "alt+cmd+t", | |
"command": "-workbench.action.closeOtherEditors" | |
} | |
] |
This file contains 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
{ | |
"window.zoomLevel": -1, // 0 | |
"terminal.integrated.fontFamily": "Meslo LG M for Powerline", | |
"phpcs.executablePath": "/usr/local/bin/phpcs", | |
"phpcs.standard": "WordPress-Core", | |
"editor.fontSize": 17, // 14 | |
"editor.fontLigatures": true, | |
"editor.lineHeight": 30, // 25 | |
"editor.fontFamily": "Fira Code, Menlo, Monaco, 'Courier New', monospace", | |
"editor.wordSeparators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?", | |
"files.trimTrailingWhitespace": true, | |
"editor.minimap.showSlider": "always", | |
"editor.multiCursorModifier": "ctrlCmd", | |
"terminal.external.osxExec": "iTerm.app", | |
"terminal.integrated.confirmOnExit": true, | |
"terminal.integrated.cursorStyle": "line", | |
"terminal.integrated.fontSize": 17, // 14 | |
"workbench.tree.indent": 15, | |
"workbench.list.horizontalScrolling": true, | |
"workbench.colorTheme": "morgan.codes", | |
"workbench.editor.labelFormat": "short", | |
"workbench.sideBar.location": "right", | |
"auto-close-tag.activationOnLanguage": ["*"], | |
"php-docblocker.author": { | |
"name": "Matt Postlethwaite", | |
"email": "matt@verse.co.uk" | |
}, | |
"php-docblocker.returnGap": true, | |
"php-docblocker.returnVoid": false, | |
"breadcrumbs.enabled": true, | |
"intelephense.format.enable": false, | |
"colorize.colorized_variables": ["SASS"], | |
"terminal.integrated.rendererType": "dom", | |
"typescript.updateImportsOnFileMove.enabled": "always", | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"files.exclude": { | |
"\"**/.git\": false": true, | |
"**/.git": false | |
}, | |
"sync.gist": "aed574328f8fb536934ad1823b1afc9e", | |
"phpcs.enable": false, | |
"[jsonc]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[json]": { | |
"editor.defaultFormatter": "vscode.json-language-features" | |
}, | |
"[yaml]": { | |
"editor.tabSize": 2, | |
"editor.insertSpaces": true | |
}, | |
"editor.formatOnSave": true, | |
"editor.codeActionsOnSave": { | |
"source.fixAll.tslint": true, | |
"source.fixAll.eslint": true, | |
"source.fixAll": true | |
}, | |
"[javascript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.tabSize": 2 | |
}, | |
"[typescriptreact]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.tabSize": 2 | |
}, | |
"[javascriptreact]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.tabSize": 2 | |
}, | |
"[twig]": { | |
"editor.defaultFormatter": "mblode.twig-language-2", | |
}, | |
"editor.tabSize": 2, | |
"prettier.disableLanguages": ["vue", "html", "php"], | |
"prettier.configPath": "/Users/mattp/.prettierrc", | |
"prettier.packageManager": "yarn", | |
"eslint.lintTask.enable": true, | |
"eslint.packageManager": "yarn", | |
"workbench.colorCustomizations": { | |
"[morgan.codes]": { | |
// Status bar | |
"statusBar.background": "#1A1A1A", | |
"statusBar.foreground": "#ffffff50", | |
// Activity bar | |
"activityBar.foreground": "#ffffff80", | |
"activityBar.inactiveForeground": "#ffffff50", | |
// Editor | |
"editorUnnecessaryCode.opacity": "#00000050", | |
"editorLineNumber.foreground": "#ffffff20" | |
} | |
}, | |
"eslint.alwaysShowStatus": true, | |
"eslint.options": { | |
"extensions": [".js", ".jsx", ".md", ".mdx", ".ts", ".tsx"] | |
}, | |
"eslint.validate": ["markdown", "md", "mdx"], | |
"sass.lint.enable": false, | |
"sass.disableAutoIndent": true, | |
"sass.disableUnitCompletion": true, | |
"sass.format.enabled": false, | |
"sass.format.deleteWhitespace": false, | |
"sass.format.deleteEmptyRows": false, | |
"sass.format.setPropertySpace": false, | |
"[sass]": { | |
"editor.defaultFormatter": null | |
}, | |
"workbench.iconTheme": "material-icon-theme", | |
"editor.renderWhitespace": "boundary", | |
"editor.minimap.maxColumn": 75, | |
"zenMode.fullScreen": false, | |
"workbench.settings.enableNaturalLanguageSearch": false, | |
"editor.cursorBlinking": "phase", | |
"editor.cursorStyle": "line-thin", | |
"editor.cursorSurroundingLines": 10, | |
"files.insertFinalNewline": true, | |
"editor.insertSpaces": false, | |
"files.associations": { | |
"*.html": "twig" | |
}, | |
"emmet.includeLanguages": { | |
"twig": "html" | |
}, | |
} |
This file contains 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
{ | |
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | |
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | |
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | |
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | |
// Placeholders with the same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "scope": "javascript,typescript", | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", | |
// "$2" | |
// ], | |
// "description": "Log output to console" | |
// } | |
"Arrow function": { | |
"scope": "javascript,javascriptreact,typescript", | |
"prefix": "af", | |
"body": [ | |
"($1) => $2" | |
], | |
"description": "Create arrow function" | |
} | |
} |
This file contains 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
{ | |
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | |
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | |
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | |
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | |
// Placeholders with the same ids are connected. | |
// Example: | |
"Print to console": { | |
"scope": "javascript,typescript,javascriptreact,typescriptreact", | |
"prefix": "cl", | |
"body": ["console.log($1);", "$2"], | |
"description": "Log output to console" | |
} | |
} |
This file contains 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
{ | |
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | |
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | |
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | |
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | |
// Placeholders with the same ids are connected. | |
// Example: | |
"React Contect API TS": { | |
"scope": "typescript,typescriptreact", | |
"prefix": "context-api", | |
"body": [ | |
"import React, { useState, useContext } from 'react';", | |
"const AppContext = React.createContext({});", | |
"export const ${1:AppProvider} = ({ children }) => {", | |
"\treturn (", | |
"\t\t<${2:AppContext}.Provider", | |
"\t\t\tvalue={$3}>", | |
"\t\t\t{children}", | |
"\t\t</AppContext.Provider>", | |
"\t);", | |
"};", | |
"export const ${2:AppContext}Consumer = ${2:AppContext}.Consumer;", | |
"export const useAppContext = () => useContext(${2:AppContext});" | |
], | |
"description": "React Contect API for Typescript" | |
} | |
} |
This file contains 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
{ | |
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | |
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | |
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | |
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | |
// Placeholders with the same ids are connected. | |
// Example: | |
"React Contect API JS": { | |
"scope": "javascript,javascriptreact", | |
"prefix": "context-api", | |
"body": [ | |
"import React, { useState, useContext } from 'react';", | |
"import propTypes, { useState, useContext } from 'react';", | |
"const AppContext = React.createContext({});", | |
"export const ${1:AppProvider} = ({ children }) => {", | |
"\treturn (", | |
"\t\t<${2:AppContext}.Provider", | |
"\t\t\tvalue={$3}>", | |
"\t\t\t{children}", | |
"\t\t</AppContext.Provider>", | |
"\t);", | |
"};", | |
"${1:AppProvider}.propTypes = {", | |
"\tchildren: PropTypes.node.isRequired", | |
"};", | |
"export const ${2:AppContext}Consumer = ${2:AppContext}.Consumer;", | |
"export const useAppContext = () => useContext(${2:AppContext});" | |
], | |
"description": "React Contect API for JS" | |
} | |
} |
This file contains 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
{ | |
// Place your snippets for html here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", | |
// "$2" | |
// ], | |
// "description": "Log output to console" | |
// } | |
"php": { | |
"prefix": "php", | |
"body": [ | |
"<?php $1 ?>" | |
], | |
"description": "php tag" | |
} | |
} |
This file contains 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
{ | |
// Place your snippets for javascriptreact here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", | |
// "$2" | |
// ], | |
// "description": "Log output to console" | |
// } | |
} |
This file contains 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
{ | |
"JS import statement": { | |
"scope": "javascript,javascriptreact,typescript", | |
"prefix": "import", | |
"body": [ | |
"import $1 from '$2';" | |
], | |
"description": "Add javascript import statement" | |
} | |
} |
This file contains 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
{ | |
// Place your snippets for php here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", | |
// "$2" | |
// ], | |
// "description": "Log output to console" | |
// } | |
} |
This file contains 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
{ | |
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | |
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | |
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | |
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | |
// Placeholders with the same ids are connected. | |
// Example: | |
"Printr with pre": { | |
"scope": "php", | |
"prefix": "preprintr", | |
"body": [ | |
"echo '<pre>'; print_r( $1 ); echo '</pre>';" | |
], | |
"description": "Printr with pre" | |
} | |
} |
This file contains 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
{ | |
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | |
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | |
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | |
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | |
// Placeholders with the same ids are connected. | |
// Example: | |
"Printr with pre": { | |
"scope": "php", | |
"prefix": "preprintrwpdie", | |
"body": [ | |
"echo '<pre>'; print_r( $1 ); echo '</pre>'; wp_die();" | |
], | |
"description": "Printr with pre and wp_die" | |
} | |
} |
This file contains 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
{ | |
"Themed Component": { | |
"scope": "javascript,javascriptreact", | |
"prefix": "proptypes-import", | |
"body": [ | |
"import PropTypes from 'prop-types';" | |
], | |
"description": "Add PropTypes import" | |
} | |
} |
This file contains 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
{ | |
"PropType Declaration": { | |
"scope": "javascript,javascriptreact", | |
"prefix": "proptypes", | |
"body": [ | |
"${1:ComponentName}.propTypes = {", | |
" ${2:PropName}: PropTypes.${3:PropType},", | |
"};", | |
" ", | |
"${1:ComponentName}.defaultProps = {", | |
" ${2:PropName}: ${4},", | |
"};", | |
], | |
"description": "Add PropTypes declaration" | |
} | |
} |
This file contains 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
{ | |
"Print to console": { | |
"scope": "javascript,typescript", | |
"prefix": "ri", | |
"body": [ | |
"import React from 'react';" | |
], | |
"description": "Adds react import statement" | |
} | |
} |
This file contains 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
{ | |
"Themed Component": { | |
"scope": "javascript,javascriptreact", | |
"prefix": "reactsf", | |
"body": [ | |
"import React, { Component } from 'react'", | |
" ", | |
"class ${1:ComponentName} extends Component {", | |
" constructor(props) {", | |
" super(props);", | |
" this.state = {", | |
" };", | |
" }", | |
" render () {", | |
" return (", | |
" $0", | |
" );", | |
" }", | |
"}", | |
" ", | |
"export default ${1:ComponentName}" | |
], | |
"description": "Create Stateful Component" | |
} | |
} |
This file contains 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
{ | |
"Themed Component": { | |
"scope": "javascript,javascriptreact,typescript,typescriptreact", | |
"prefix": "reactsl", | |
"body": [ | |
"import React from 'react'", | |
" ", | |
"const ${1:ComponentName} = props => {", | |
" return (", | |
" $0", | |
" )", | |
"}", | |
" ", | |
"export default ${1:ComponentName}" | |
], | |
"description": "Create Stateless Component" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment