Last active
January 28, 2021 08:45
-
-
Save mmbmatteo/25e046305a70524fddeddeb811c5f70f 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-28T08:45:14.171Z","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": "39757d2a-1a37-40b9-b8b8-aa7ebd6e0cf9", | |
"publisherId": "karigari.chat", | |
"publisherDisplayName": "karigari" | |
}, | |
"name": "chat", | |
"publisher": "karigari", | |
"version": "0.35.0" | |
}, | |
{ | |
"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": "f9b41ed2-541f-4932-aa79-9e13729d5671", | |
"publisherId": "Nixon.env-cmd-file-syntax", | |
"publisherDisplayName": "Nixon" | |
}, | |
"name": "env-cmd-file-syntax", | |
"publisher": "Nixon", | |
"version": "0.2.2" | |
}, | |
{ | |
"metadata": { | |
"id": "6d2b4ef2-1d6d-4a1f-91fb-29fcadfb4b0a", | |
"publisherId": "vector-of-bool.gitflow", | |
"publisherDisplayName": "vector-of-bool" | |
}, | |
"name": "gitflow", | |
"publisher": "vector-of-bool", | |
"version": "1.2.1" | |
}, | |
{ | |
"metadata": { | |
"id": "4de763bd-505d-4978-9575-2b7696ecf94e", | |
"publisherId": "eamodio.gitlens", | |
"publisherDisplayName": "eamodio" | |
}, | |
"name": "gitlens", | |
"publisher": "eamodio", | |
"version": "11.1.3" | |
}, | |
{ | |
"metadata": { | |
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90", | |
"publisherId": "esbenp.prettier-vscode", | |
"publisherDisplayName": "esbenp" | |
}, | |
"name": "prettier-vscode", | |
"publisher": "esbenp", | |
"version": "5.8.0" | |
}, | |
{ | |
"metadata": { | |
"id": "baa185f3-22aa-4a14-ac21-5c421de53415", | |
"publisherId": "prettier.prettier-vscode", | |
"publisherDisplayName": "prettier" | |
}, | |
"name": "prettier-vscode", | |
"publisher": "prettier", | |
"version": "3.14.1" | |
}, | |
{ | |
"metadata": { | |
"id": "f0c5397b-d357-4197-99f0-cb4202f22818", | |
"publisherId": "ms-vscode-remote.remote-wsl", | |
"publisherDisplayName": "ms-vscode-remote" | |
}, | |
"name": "remote-wsl", | |
"publisher": "ms-vscode-remote", | |
"version": "0.52.0" | |
}, | |
{ | |
"metadata": { | |
"id": "00518570-772b-4ccb-8b06-d056f3f556e0", | |
"publisherId": "Tyriar.sort-lines", | |
"publisherDisplayName": "Tyriar" | |
}, | |
"name": "sort-lines", | |
"publisher": "Tyriar", | |
"version": "1.9.0" | |
}, | |
{ | |
"metadata": { | |
"id": "cb9cc98b-7140-4f13-b993-1e26c4a7bd42", | |
"publisherId": "Arjun.swagger-viewer", | |
"publisherDisplayName": "Arjun" | |
}, | |
"name": "swagger-viewer", | |
"publisher": "Arjun", | |
"version": "3.0.1" | |
}, | |
{ | |
"metadata": { | |
"id": "0479fc1c-3d67-49f9-b087-fb9069afe48f", | |
"publisherId": "ms-azuretools.vscode-docker", | |
"publisherDisplayName": "ms-azuretools" | |
}, | |
"name": "vscode-docker", | |
"publisher": "ms-azuretools", | |
"version": "1.9.1" | |
}, | |
{ | |
"metadata": { | |
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a", | |
"publisherId": "dbaeumer.vscode-eslint", | |
"publisherDisplayName": "dbaeumer" | |
}, | |
"name": "vscode-eslint", | |
"publisher": "dbaeumer", | |
"version": "2.1.14" | |
}, | |
{ | |
"metadata": { | |
"id": "75dba0f9-d5c5-4902-99c4-cd3d60ec7147", | |
"publisherId": "42Crunch.vscode-openapi", | |
"publisherDisplayName": "42Crunch" | |
}, | |
"name": "vscode-openapi", | |
"publisher": "42Crunch", | |
"version": "3.10.0" | |
}, | |
{ | |
"metadata": { | |
"id": "5a7017bf-c571-4d77-b902-6e56b16f539a", | |
"publisherId": "johnpapa.vscode-peacock", | |
"publisherDisplayName": "johnpapa" | |
}, | |
"name": "vscode-peacock", | |
"publisher": "johnpapa", | |
"version": "3.9.1" | |
}, | |
{ | |
"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": "2061917f-f76a-458a-8da9-f162de22b97e", | |
"publisherId": "redhat.vscode-yaml", | |
"publisherDisplayName": "redhat" | |
}, | |
"name": "vscode-yaml", | |
"publisher": "redhat", | |
"version": "0.14.0" | |
}, | |
{ | |
"metadata": { | |
"id": "5a6dc0d5-dc02-4121-8e24-cad33a2ff0af", | |
"publisherId": "ms-vsliveshare.vsliveshare", | |
"publisherDisplayName": "ms-vsliveshare" | |
}, | |
"name": "vsliveshare", | |
"publisher": "ms-vsliveshare", | |
"version": "1.0.3577" | |
}, | |
{ | |
"metadata": { | |
"id": "f38fdd1c-7ee2-47b1-90b9-77ecc90d4bff", | |
"publisherId": "ms-vsliveshare.vsliveshare-audio", | |
"publisherDisplayName": "ms-vsliveshare" | |
}, | |
"name": "vsliveshare-audio", | |
"publisher": "ms-vsliveshare", | |
"version": "0.1.91" | |
}, | |
{ | |
"metadata": { | |
"id": "87caf16b-d487-45c0-877d-573fe319b015", | |
"publisherId": "ms-vsliveshare.vsliveshare-pack", | |
"publisherDisplayName": "ms-vsliveshare" | |
}, | |
"name": "vsliveshare-pack", | |
"publisher": "ms-vsliveshare", | |
"version": "0.4.0" | |
} | |
] |
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 | |
[ | |
{ | |
"key": "ctrl+shift+c ctrl+shift+down", | |
"command": "editor.action.copyLinesDownAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+alt+down", | |
"command": "-editor.action.copyLinesDownAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+c ctrl+shift+up", | |
"command": "editor.action.copyLinesUpAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+alt+up", | |
"command": "-editor.action.copyLinesUpAction", | |
"when": "editorTextFocus && !editorReadonly" | |
} | |
] |
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
{ | |
"window.zoomLevel": 1, | |
"git.confirmSync": false, | |
"atomKeymap.promptV3Features": true, | |
"editor.multiCursorModifier": "ctrlCmd", | |
"editor.formatOnPaste": true, | |
"editor.tabSize": 2, | |
"editor.codeActionsOnSave": { | |
"source.fixAll": true | |
}, | |
"search.exclude": { | |
"**/.git": true, | |
"**/.svn": true, | |
"**/.hg": true, | |
"**/CVS": true, | |
"**/.DS_Store": true, | |
"**/bundle.js": true, | |
"**/bundle.js.map": true | |
}, | |
"git.enableSmartCommit": true, | |
"eslint.codeActionsOnSave.mode": "problems", | |
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe", | |
"git.autofetch": true, | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"explorer.confirmDragAndDrop": false, | |
"explorer.confirmDelete": false, | |
"typescript.updateImportsOnFileMove.enabled": "always", | |
"swaggerViewer.previewInBrowser": true, | |
"openapi.securityAuditToken": "", | |
"sync.gist": "25e046305a70524fddeddeb811c5f70f", | |
"diffEditor.renderSideBySide": true, | |
"[json]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[typescriptreact]": { | |
"editor.defaultFormatter": "vscode.typescript-language-features" | |
}, | |
"[typescript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"diffEditor.ignoreTrimWhitespace": false, | |
"[yaml]": { | |
"editor.defaultFormatter": "redhat.vscode-yaml" | |
}, | |
"files.autoSave": "off" | |
} |
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 javascript 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: | |
"Hook style": { | |
"prefix": "styleHook", | |
"body": [ | |
"import { createStyles, makeStyles, Theme} from '@material-ui/core/styles", | |
"const useStyles = makeStyles((theme: Theme) => createStyles({root: {flexGrow: 1}}))", | |
"const classes = useStyles()", | |
"className={classes.root}" | |
], | |
"description": "styleHook" | |
} | |
} |
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 javascript 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: | |
"Hook style": { | |
"prefix": "styleHook", | |
"body": [ | |
"import { createStyles, makeStyles, Theme} from '@material-ui/core/styles", | |
"const useStyles = makeStyles((theme: Theme) => createStyles({root: {flexGrow: 1}}))", | |
"const classes = useStyles()", | |
"className={classes.root}" | |
], | |
"description": "styleHook" | |
} | |
} |
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 javascript 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: | |
"Hook style": { | |
"prefix": "styleHook", | |
"body": [ | |
"import { createStyles, makeStyles, Theme} from '@material-ui/core/styles'", | |
"const useStyles = makeStyles((theme: Theme) => createStyles({root: {flexGrow: 1}}))", | |
"const classes = useStyles()", | |
"className={classes.root}" | |
], | |
"description": "styleHook" | |
}, | |
"Dev style": { | |
"prefix": "devStyle", | |
"body": [ | |
"className='dev-style'" | |
], | |
"description": "devStyle" | |
}, | |
"React Component": { | |
"prefix": "component", | |
"body": [ | |
"import React from 'react'\n", | |
"export default function Component ({ config }: { config: object }) {", | |
"\treturn <></>", | |
"}" | |
], | |
"description": "simple component" | |
}, | |
"React Container": { | |
"prefix": "container", | |
"body": [ | |
"import React from 'react'\nimport useAPI from 'lib/hooks/useAPI'\nimport apiEndpoints from 'lib/constants/apiEndpoints'\nimport CenteredErrorMessage from 'components/Errors/CenteredErrorMessage'\nimport CenteredLoader from 'components/Loaders/Centered'\n\nexport default function ItemPage () {\n const [{ data, isLoading, isError }] = useAPI(\n {\n method: 'get',\n url: apiEndpoints.support.faqSearch\n }\n )\n\n if (isError) return <CenteredErrorMessage />\n\n if (isLoading) return <CenteredLoader />\n\n if (data) { return <>{JSON.stringify(data)}</> }\n\n return null\n}" | |
], | |
"description": "container" | |
}, | |
"Styled Component": { | |
"prefix": "styledComponent", | |
"body": [ | |
"import { styled } from '@material-ui/core/styles'\n", | |
"const MyButton = styled(Button)({", | |
"\tbackground: 'linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)',", | |
"\tborder: 0,", | |
"\tborderRadius: 3,", | |
"})\n", | |
"export default function Component ({ config }: { config: object }) {", | |
"\treturn <></>", | |
"}" | |
], | |
"description": "styledComponent" | |
}, | |
"History": { | |
"prefix": "history", | |
"body": [ | |
"import { useHistory } from 'react-router-dom'\n", | |
"const history = useHistory()\n", | |
"history.push()" | |
], | |
"description": "history" | |
}, | |
"ErrorMessage": { | |
"prefix": "ErrorMessage", | |
"body": [ | |
"import ErrorMessage from 'components/ErrorMessage'", | |
"<ErrorMessage />" | |
], | |
"description": "ErrorMessage" | |
}, | |
"useParams": { | |
"prefix": "useParams", | |
"body": [ | |
"import { useParams } from 'react-router-dom'\nconst { layoutId } = useParams()" | |
], | |
"description": "useParams" | |
}, | |
"consoleLog": { | |
"prefix": "consoleLog", | |
"body": [ | |
"console.log('xxx', xxx)" | |
], | |
"description": "consoleLog" | |
}, | |
"Skeleton": { | |
"prefix": "Skeleton", | |
"body": [ | |
"import Skeleton from '@material-ui/lab/Skeleton'" | |
], | |
"description": "Skeleton" | |
}, | |
"className": { | |
"prefix": "className", | |
"body": [ | |
"className={classes.X}" | |
], | |
"description": "className" | |
}, | |
"devBorder": { | |
"prefix": "devBorder", | |
"body": [ | |
"border: '1px solid red'" | |
], | |
"description": "devBorder" | |
}, | |
"connect": { | |
"prefix": "connect", | |
"body": [ | |
"import IAppState from 'reducers/interface'\nimport { getCart } from 'actions\/cart' \nimport { connect } from 'react-redux'\n\nfunction mapStateToProps (state: IAppState) {\n return {\n cart: state.cart\n }\n}\n\nexport default connect(mapStateToProps, { getCart })(withWidth()(CartIcon))" | |
], | |
"description": "connect" | |
}, | |
"useMediaQuery": { | |
"prefix": "useMediaQuery", | |
"body": [ | |
"import { useMediaQuery } from '@material-ui/core'\nimport { useTheme } from '@material-ui/core/styles'\nconst theme = useTheme()\nconst isMobile = useMediaQuery(theme.breakpoints.down('sm'))" | |
], | |
"description": "useMediaQuery" | |
}, | |
"boldText": { | |
"prefix": "boldText", | |
"body": [ | |
"<Typography component='div'>\n\t<Box fontWeight='fontWeightBold'>\n\t\t{text}\n\t</Box>\n</Typography>" | |
], | |
"description": "boldText" | |
}, | |
"allBorders X Class": { | |
"prefix": "allBorders X Class", | |
"body": [ | |
"className={ classes.X }\nX: {\n\t'& *': {\n\t\tborder: '1px solid red'\n\t}\n}," | |
], | |
"description": "allBorders X Class" | |
}, | |
"background": { | |
"prefix": "background", | |
"body": [ | |
"import { primary as primaryBackground } from 'style/background'\nbackground: primaryBackground(theme).main" | |
], | |
"description": "background" | |
}, | |
"timer": { | |
"prefix": "timer", | |
"body": [ | |
"import {useState, useEffect", | |
"} from 'react'", | |
"const [time, setTime", | |
"] = useState(0)", | |
"useEffect(() => {", | |
"const interval = setInterval(() => { setTime(time + 1)", | |
"},", | |
"1000)", | |
"return () => {", | |
"clearInterval(interval)", | |
"}", | |
"})" | |
], | |
"description": "timer" | |
}, | |
"clsx": { | |
"prefix": "clsx", | |
"body": [ | |
"import clsx from 'clsx'" | |
], | |
"description": "clsx" | |
}, | |
"snackbar": { | |
"prefix": "snackbar", | |
"body": [ | |
"import Snackbar from \"components/Snackbar\";", | |
"import { defaultErrorMessage", | |
"} from 'lib/constants/strings'", | |
"import ISnackbarState from 'components/Snackbar/interface'", | |
"", | |
"const [snackbarState, setSnackbarState", | |
"] = useState<ISnackbarState>({", | |
"open: false,", | |
"});", | |
"", | |
"setSnackbarState({", | |
"open: true,", | |
"severity: \"error\",", | |
"message: defaultErrorMessage,", | |
"});", | |
"<Snackbar setSnackbarState={setSnackbarState", | |
"} state={snackbarState", | |
"} />;" | |
], | |
"description": "snackbar component" | |
}, | |
"api network call": { | |
"prefix": "api network call", | |
"body": [ | |
"import network from 'lib/network'\nimport apiEndpoints from 'lib/constants/apiEndpoints'\n\n async function onClick () {\n try {\n await network({ method: 'POST', url: apiEndpoints.bff.checkout })\n } catch (error) {\n setSnackbarState({\n open: true,\n severity: 'error',\n message: error.message\n })\n }\n }" | |
], | |
"description": "api network call" | |
}, | |
"testServer": { | |
"prefix": "testServer", | |
"body": [ | |
"import { Server } from 'miragejs'\n\nlet server: any\n\nbeforeEach(() => {\n server = new Server({\n environment: 'test',\n trackRequests: true\n })\n})\n\nafterEach(() => {\n server.shutdown()\n})\n" | |
], | |
"description": "testServer" | |
}, | |
"queryParams": { | |
"prefix": "queryParams", | |
"body": [ | |
"import { useLocation } from 'react-router-dom'\n import qs, { ParsedQs } from 'qs'\n const location = useLocation()\nconst { searchQuery }: ParsedQs = qs.parse(location.search, { ignoreQueryPrefix: true })" | |
], | |
"description": "queryParams" | |
}, | |
"simpleTest": { | |
"prefix": "simpleTest", | |
"body": [ | |
"import { render } from '@testing-library/react'\r\nimport React from 'react'\r\nimport ItemBigBuyButton from '..'\r\n\r\ntest('snapshot', () => {\r\n const button = render(\r\n <ItemBigBuyButton\r\n onClick={() => {}}\r\n price={{ value: 50 }}\r\n version='transparent'\r\n />\r\n )\r\n\r\n expect(button).toMatchSnapshot()\r\n})" | |
], | |
"description": "simpleTest" | |
}, | |
"dummyTest": { | |
"prefix": "dummyTest", | |
"body": [ | |
"import { pick } from 'lodash'\n\ntest('d', () => {\n const key = pick({ key: 'a' }, ['key'])\n expect(key).toEqual({ key: 'a' })\n})" | |
], | |
"description": "dummyTest" | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment