Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-12-12T16:45:16.801Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "819a23e1-b6c6-41cf-9029-e653b537d996",
"publisherId": "ms-vscode.azure-account",
"publisherDisplayName": "ms-vscode"
},
"name": "azure-account",
"publisher": "ms-vscode",
"version": "0.8.7"
},
{
"metadata": {
"id": "7032281c-aa10-4e95-9049-46a8bd112af3",
"publisherId": "ms-azure-devops.azure-pipelines",
"publisherDisplayName": "ms-azure-devops"
},
"name": "azure-pipelines",
"publisher": "ms-azure-devops",
"version": "1.157.4"
},
{
"metadata": {
"id": "464f4ac7-af65-4aa9-9907-4ba7fa419085",
"publisherId": "bungcip.better-toml",
"publisherDisplayName": "bungcip"
},
"name": "better-toml",
"publisher": "bungcip",
"version": "0.3.2"
},
{
"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": "19804510-b475-4dae-b0f7-6ca08fd1af0c",
"publisherId": "dsznajder.es7-react-js-snippets",
"publisherDisplayName": "dsznajder"
},
"name": "es7-react-js-snippets",
"publisher": "dsznajder",
"version": "2.4.4"
},
{
"metadata": {
"id": "b3917e4f-5086-4def-a82b-2ae6b708db16",
"publisherId": "flowtype.flow-for-vscode",
"publisherDisplayName": "flowtype"
},
"name": "flow-for-vscode",
"publisher": "flowtype",
"version": "1.5.0"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "10.2.0"
},
{
"metadata": {
"id": "aae00486-7e92-42b3-91b0-2b419e4f3875",
"publisherId": "vincaslt.highlight-matching-tag",
"publisherDisplayName": "vincaslt"
},
"name": "highlight-matching-tag",
"publisher": "vincaslt",
"version": "0.9.6"
},
{
"metadata": {
"id": "8ee0c715-ca9e-4ce2-8841-5faa5e0f3255",
"publisherId": "andys8.jest-snippets",
"publisherDisplayName": "andys8"
},
"name": "jest-snippets",
"publisher": "andys8",
"version": "1.7.0"
},
{
"metadata": {
"id": "b5728c9a-f41b-484b-9875-6cb8ddd8a98b",
"publisherId": "DimitarNonov.lightDelight",
"publisherDisplayName": "DimitarNonov"
},
"name": "lightDelight",
"publisher": "DimitarNonov",
"version": "1.11.0"
},
{
"metadata": {
"id": "ef2a5b38-02c4-4193-8561-1f072c209474",
"publisherId": "silvenon.mdx",
"publisherDisplayName": "silvenon"
},
"name": "mdx",
"publisher": "silvenon",
"version": "0.1.0"
},
{
"metadata": {
"id": "e58f546c-babc-455f-a265-ba40dbd140d4",
"publisherId": "sdras.night-owl",
"publisherDisplayName": "sdras"
},
"name": "night-owl",
"publisher": "sdras",
"version": "1.1.3"
},
{
"metadata": {
"id": "d80b9a94-f4a6-4e39-bc42-62212e365682",
"publisherId": "pnp.polacode",
"publisherDisplayName": "pnp"
},
"name": "polacode",
"publisher": "pnp",
"version": "0.3.4"
},
{
"metadata": {
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
"publisherId": "esbenp.prettier-vscode",
"publisherDisplayName": "esbenp"
},
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "3.11.0"
},
{
"metadata": {
"id": "2fbb5e91-7f4a-478d-bd66-e8a067eb1de2",
"publisherId": "jairhenrique.pytest-snippets",
"publisherDisplayName": "jairhenrique"
},
"name": "pytest-snippets",
"publisher": "jairhenrique",
"version": "1.0.0"
},
{
"metadata": {
"id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5",
"publisherId": "ms-python.python",
"publisherDisplayName": "ms-python"
},
"name": "python",
"publisher": "ms-python",
"version": "2019.11.50794"
},
{
"metadata": {
"id": "a5a4d637-aa11-4bd1-b404-9f10390f8d4b",
"publisherId": "lextudio.restructuredtext",
"publisherDisplayName": "lextudio"
},
"name": "restructuredtext",
"publisher": "lextudio",
"version": "116.0.0"
},
{
"metadata": {
"id": "b5d1310e-7326-465f-8d35-3d78cd8119fd",
"publisherId": "buenon.scratchpads",
"publisherDisplayName": "buenon"
},
"name": "scratchpads",
"publisher": "buenon",
"version": "0.0.7"
},
{
"metadata": {
"id": "b191f1e9-0a63-4775-b3bd-d1ed1c401620",
"publisherId": "testthedocs.vale",
"publisherDisplayName": "testthedocs"
},
"name": "vale",
"publisher": "testthedocs",
"version": "0.9.0"
},
{
"metadata": {
"id": "d96e79c6-8b25-4be3-8545-0e0ecefcae03",
"publisherId": "vscodevim.vim",
"publisherDisplayName": "vscodevim"
},
"name": "vim",
"publisher": "vscodevim",
"version": "1.12.2"
},
{
"metadata": {
"id": "0479fc1c-3d67-49f9-b087-fb9069afe48f",
"publisherId": "ms-azuretools.vscode-docker",
"publisherDisplayName": "ms-azuretools"
},
"name": "vscode-docker",
"publisher": "ms-azuretools",
"version": "0.9.0"
},
{
"metadata": {
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a",
"publisherId": "dbaeumer.vscode-eslint",
"publisherDisplayName": "dbaeumer"
},
"name": "vscode-eslint",
"publisher": "dbaeumer",
"version": "1.9.1"
},
{
"metadata": {
"id": "d637104e-1fd7-4063-98fc-8afe46012c9b",
"publisherId": "sleistner.vscode-fileutils",
"publisherDisplayName": "sleistner"
},
"name": "vscode-fileutils",
"publisher": "sleistner",
"version": "3.0.0"
},
{
"metadata": {
"id": "c3382f5b-0525-4f74-93df-3a82483c1ad8",
"publisherId": "kenhowardpdx.vscode-gist",
"publisherDisplayName": "kenhowardpdx"
},
"name": "vscode-gist",
"publisher": "kenhowardpdx",
"version": "3.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": "06c45f72-79b0-400c-a701-c420fa7d0a99",
"publisherId": "muuvmuuv.vscode-sundial",
"publisherDisplayName": "muuvmuuv"
},
"name": "vscode-sundial",
"publisher": "muuvmuuv",
"version": "1.17.0"
},
{
"metadata": {
"id": "5a6dc0d5-dc02-4121-8e24-cad33a2ff0af",
"publisherId": "ms-vsliveshare.vsliveshare",
"publisherDisplayName": "ms-vsliveshare"
},
"name": "vsliveshare",
"publisher": "ms-vsliveshare",
"version": "1.0.1377"
}
]
// Place your key bindings in this file to override the defaults
[
// Sort of like vim's % for tags
// This is really just a workaround for
// https://github.com/VSCodeVim/Vim/issues/2653
{
"key": "cmd+5",
"command": "editor.emmet.action.matchTag"
},
// My fingers are too used to this mapping from vim.
// For some reason, this can't be defined in vim.normalModeKeyBindingsNonRecursive
{
"key": "ctrl+p",
"command": "workbench.action.quickOpen"
},
{
"key": "ctrl+[",
"command": "workbench.action.closeQuickOpen",
"when": "inQuickOpen"
},
{
"key": "cmd+y",
"command": "editor.emmet.action.expandAbbreviation"
}
]
{
"telemetry.enableTelemetry": false,
"telemetry.enableCrashReporter": false,
"workbench.settings.enableNaturalLanguageSearch": false,
"workbench.settings.editor": "json",
"editor.fontFamily": "Hack, Menlo, Monaco, 'Courier New', monospace",
"editor.formatOnSave": true,
"editor.formatOnSaveTimeout": 1200,
"explorer.confirmDragAndDrop": false,
"editor.tabSize": 2,
"files.insertFinalNewline": true,
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
// Python junk
"**/.tox": true,
"**/*.egg-info": true,
"**/*.pyc": true,
"**/__pycache__": true,
"**/pip-wheel-metadata": true,
"**/.pytest_cache": true
},
"search.smartCase": true,
"window.title": "${dirty} ${activeEditorMedium}${separator}${rootName}",
// Reduce visual junk
"editor.minimap.enabled": false,
"editor.folding": false,
"workbench.statusBar.feedback.visible": false,
"workbench.activityBar.visible": false,
"workbench.startupEditor": "none",
"editor.occurrencesHighlight": false,
"editor.overviewRulerBorder": false,
"editor.overviewRulerLanes": 0,
"editor.hideCursorInOverviewRuler": true,
"workbench.iconTheme": null,
"explorer.openEditors.visible": 0,
"breadcrumbs.enabled": false,
// NOTE: Below 2 settings raise warnings for some reason. Ignore that.
"editor.scrollbar.horizontal": "hidden",
"editor.scrollbar.vertical": "hidden",
// Vim (best effort at emulating my actual vim setup)
"vim.vimrc.enable": false,
"vim.leader": "<space>",
"vim.hlsearch": true,
"editor.renderFinalNewline": false,
"editor.lineNumbers": "relative",
"editor.renderWhitespace": "all",
"vim.useSystemClipboard": true,
"vim.visualstar": true,
"vim.highlightedyank.enable": true,
"vim.highlightedyank.duration": 800,
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["<backspace>"],
"commands": ["editor.action.trimTrailingWhitespace"]
},
// Quickly move to beginning and end of line
{
"before": ["<leader>", "h"],
"after": ["^"]
},
{
"before": ["<leader>", "l"],
"after": ["$"]
},
// Quickly save and quit
{
"before": ["<leader>", "w"],
"commands": ["workbench.action.files.save"]
},
{
"before": ["<leader>", "q"],
"commands": ["workbench.action.closeActiveEditor"]
},
// Execute macro
{
"before": ["Q"],
"after": ["@", "q"]
},
// Split lines (opposite of J)
{
"before": ["S"],
"after": ["i", "<CR>", "<Esc>"]
},
// vim-unimpaired mappings
{
"before": ["]", "<space>"],
"commands": ["editor.action.insertLineAfter"]
},
{
"before": ["[", "<space>"],
"commands": ["editor.action.insertLineBefore"]
},
{
"before": ["[", "b"],
"commands": ["workbench.action.previousEditor"]
},
{
"before": ["]", "b"],
"commands": ["workbench.action.nextEditor"]
},
// Splits
{
"before": ["<leader>", "v"],
"commands": ["workbench.action.splitEditor"]
},
{
"before": ["<C-l>"],
"commands": ["workbench.action.focusNextGroup"]
},
{
"before": ["<C-h>"],
"commands": ["workbench.action.focusPreviousGroup"]
},
{
"before": ["<leader>", "/"],
"commands": ["editor.action.commentLine"]
},
// Select all
{
"before": ["<leader>", "a"],
"after": ["g", "g", "V", "G"]
},
// Unhighlight search matches
{ "before": ["<C-n>"], "commands": [":nohl"] },
// Git
{
"before": ["<leader>", "g", "h"],
"commands": ["git.stageSelectedRanges"]
},
{
"before": ["<leader>", "g", "H"],
"commands": ["git.revertSelectedRanges"]
},
// Tests
{
"before": ["<leader>", "t", "t"],
"commands": ["python.runCurrentTestFile"]
},
{
"before": ["<leader>", "t", "l"],
"commands": ["python.runFailedTests"]
},
// Move over wrapped lines
{
"before": ["j"],
"after": ["g", "j"]
},
{
"before": ["k"],
"after": ["g", "k"]
}
],
"vim.visualModeKeyBindingsNonRecursive": [
{
"before": ["<leader>", "/"],
"commands": ["editor.action.commentLine"]
},
// Quickly move to beginning and end of line
{
"before": ["<leader>", "h"],
"after": ["^"]
},
{
"before": ["<leader>", "l"],
"after": ["$"]
},
// Git
{
"before": ["<leader>", "g", "h"],
"commands": ["git.stageSelectedRanges"]
},
{
"before": ["<leader>", "g", "H"],
"commands": ["git.revertSelectedRanges"]
}
],
// Settings Sync
"sync.gist": "1256526bc7e1a52d3c14954d1d26740b",
// GitLens
"gitlens.codeLens.enabled": false,
// Python
"[python]": {
"editor.tabSize": 4
},
"python.formatting.provider": "black",
"python.linting.flake8Enabled": true,
"python.linting.pylintEnabled": false,
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"python.testing.nosetestsEnabled": false,
"restructuredtext.linter.run": "off",
// Config files
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.formatOnSave": false
},
// Theme
"sundial.dayTheme": "Light Delight",
"sundial.nightTheme": "Night Owl (No Italics)",
"sundial.sunset": "18:00",
"workbench.colorTheme": "Light Delight",
"sync.forceUpload": true
}
{
// Relay
"import Relay": {
"scope": "javascriptreact,typescriptreact",
"prefix": "imrelay",
"body": ["import { createFragmentContainer, graphql } from 'react-relay';"]
},
"import Relay type": {
"scope": "typescriptreact",
"prefix": "imrt",
"body": [
"import { ${TM_FILENAME_BASE}_${1} as ${2:${1/(.*)/${1:/capitalize}/}} } from './__generated__/${TM_FILENAME_BASE}_${1}.graphql';"
]
},
"import Relay type with props": {
"scope": "typescriptreact",
"prefix": "imrprops",
"body": [
"import { ${TM_FILENAME_BASE}_${1} as ${2:${1/(.*)/${1:/capitalize}/}} } from './__generated__/${TM_FILENAME_BASE}_${1}.graphql';",
"",
"interface Props {",
"\t${1}: ${2};",
"}"
]
},
"GraphQL fragment": {
"scope": "javascriptreact,typescriptreact",
"prefix": "frag",
"body": [
"${1}: graphql`",
"\tfragment ${TM_FILENAME_BASE}_${1} on ${2:${1/(.*)/${1:/capitalize}/}} {",
"\t\t${3:id}",
"\t}",
"`,"
]
},
"createFragmentContainer": {
"scope": "javascriptreact,typescriptreact",
"prefix": "cfc",
"body": [
"export default createFragmentContainer(${TM_FILENAME_BASE}, {",
"\t${1}: graphql`",
"\t\tfragment ${TM_FILENAME_BASE}_${1} on ${2:${1/(.*)/${1:/capitalize}/}} {",
"\t\t\t${3:id}",
"\t\t}",
"\t`,",
"});"
]
},
"Relay fragment container with TypeScript boilerplate": {
"scope": "typescriptreact",
"prefix": "relayboiler",
"body": [
"import React from 'react';",
"import { FormattedMessage } from 'react-intl';",
"import { createFragmentContainer, graphql } from 'react-relay';",
"",
"import { ${TM_FILENAME_BASE}_${1} as ${2:${1/(.*)/${1:/capitalize}/}} } from './__generated__/${TM_FILENAME_BASE}_${1}.graphql';",
"",
"interface Props {",
"\t${1}: ${2};",
"}",
"",
"function ${TM_FILENAME_BASE}({ ${1} }: Props) {",
"\treturn (",
"\t\t<div>",
"\t\t\t${4:<FormattedMessage id=\"todo\" defaultMessage=\"TODO\" />}",
"\t\t</div>",
"\t);",
"}",
"",
"export default createFragmentContainer(${TM_FILENAME_BASE}, {",
"\t${1}: graphql`",
"\t\tfragment ${TM_FILENAME_BASE}_${1} on ${2:${1/(.*)/${1:/capitalize}/}} {",
"\t\t\t${3:id}",
"\t\t}",
"\t`,",
"});"
]
},
// react-intl
"import react-intl": {
"scope": "javascriptreact,typescriptreact",
"prefix": "imintl",
"body": ["import { FormattedMessage } from 'react-intl';"]
},
"FormattedMessage": {
"scope": "javascriptreact,typescriptreact",
"prefix": "fmx",
"body": ["<FormattedMessage id=\"${1}\" defaultMessage=\"${2}\" />"]
},
"defineMessages": {
"scope": "javascriptreact,typescriptreact",
"prefix": "messages",
"body": [
"const messages = defineMessages({",
"\t${1:key}: {",
"\t\tid: '${2}',",
"\t\tdefaultMessage: '${3}',",
"\t},",
"});"
]
},
"useIntl": {
"scope": "javascriptreact,typescriptreact",
"prefix": "useIntl",
"body": ["const { formatMessage } = useIntl();"]
},
"formatMessage": {
"scope": "javascriptreact,typescriptreact",
"prefix": "fm",
"body": ["formatMessage(messages.${1})"]
},
// Selenium testing
"await takeScreenshot": {
"scope": "javascript,typescript",
"prefix": "ats",
"body": ["await takeScreenshot($1);"]
},
"await browser.sleep": {
"scope": "javascript,typescript",
"prefix": "asl",
"body": ["await browser.sleep(${1:200});"]
},
"await empty promise": {
"scope": "javascript,typescript",
"prefix": "apr",
"body": ["await new Promise(() => {});"]
},
// astroturf
"import styled from 'astroturf'": {
"scope": "javascript,javascriptreact,typescriptreact",
"prefix": "imstyled",
"body": ["import styled from 'astroturf';"]
},
"import { css } from 'astroturf'": {
"scope": "javascript,javascriptreact,typescriptreact",
"prefix": "imcss",
"body": ["import { css } from 'astroturf';"]
},
"astroturf styles object": {
"scope": "javascript,javascriptreact,typescriptreact",
"prefix": "styles",
"body": [
"const styles = css`",
"\t@import '~@bfly/ui/lib/styles/theme';",
"",
"\t.${1:classname} {",
"",
"\t\t${2:property}: ${3:value};",
"\t}",
"`;"
]
},
"styled component": {
"scope": "javascript,javascriptreact,typescriptreact",
"prefix": "styled",
"body": [
"const ${1:Component} = styled(${2:'div'})`",
"\t@import '~@bfly/ui/lib/styles/theme';",
"",
"\t${3:property}: ${4:value};",
"`;"
]
},
// Styles
"import bfly/ui/lib/styles/theme": {
"scope": "javascript,javascriptreact,typescriptreact",
"prefix": "imtheme",
"body": ["@import '~@bfly/ui/lib/styles/theme';"]
}
}
{
"ipdb (single line)": {
"prefix": "ipdb",
"body": ["__import__(\"ipdb\").set_trace()"]
},
"divider": {
"prefix": "# -",
"body": [
"# -----------------------------------------------------------------------------"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.