Skip to content

Instantly share code, notes, and snippets.

@craighurley
Last active July 1, 2020 06:54
Show Gist options
  • Save craighurley/3b04d93e0f38eab2e873ecf0508b784d to your computer and use it in GitHub Desktop.
Save craighurley/3b04d93e0f38eab2e873ecf0508b784d to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-07-01T06:54:32.601Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "c821cdcd-134b-4c94-99ab-34d3cd83ab74",
"publisherId": "haaaad.ansible",
"publisherDisplayName": "haaaad"
},
"name": "ansible",
"publisher": "haaaad",
"version": "0.2.8"
},
{
"metadata": {
"id": "5a6e2b21-1d61-4acd-b31b-907f9c23f18a",
"publisherId": "CoenraadS.bracket-pair-colorizer-2",
"publisherDisplayName": "CoenraadS"
},
"name": "bracket-pair-colorizer-2",
"publisher": "CoenraadS",
"version": "0.1.4"
},
{
"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": "7b69248c-488a-4a74-ae29-56822156726f",
"publisherId": "rid9.datetime",
"publisherDisplayName": "rid9"
},
"name": "datetime",
"publisher": "rid9",
"version": "2.0.1"
},
{
"metadata": {
"id": "f60a60a6-95ba-42d4-b41c-3d24c1b89588",
"publisherId": "EditorConfig.EditorConfig",
"publisherDisplayName": "EditorConfig"
},
"name": "EditorConfig",
"publisher": "EditorConfig",
"version": "0.15.1"
},
{
"metadata": {
"id": "aad841ac-a65a-4739-bf46-48cf0ff8ed71",
"publisherId": "Blodwynn.featurehighlight",
"publisherDisplayName": "Blodwynn"
},
"name": "featurehighlight",
"publisher": "Blodwynn",
"version": "1.7.1"
},
{
"metadata": {
"id": "e294ed29-a532-4840-adf6-d9681fcc2ab2",
"publisherId": "espresso3389.genuuid",
"publisherDisplayName": "espresso3389"
},
"name": "genuuid",
"publisher": "espresso3389",
"version": "0.3.3"
},
{
"metadata": {
"id": "d6f6cfea-4b6f-41f4-b571-6ad2ab7918da",
"publisherId": "golang.go",
"publisherDisplayName": "golang"
},
"name": "go",
"publisher": "golang",
"version": "0.15.0"
},
{
"metadata": {
"id": "eaa2127d-cb69-4ab9-8505-a60c9ee5f28b",
"publisherId": "oderwat.indent-rainbow",
"publisherDisplayName": "oderwat"
},
"name": "indent-rainbow",
"publisher": "oderwat",
"version": "7.4.0"
},
{
"metadata": {
"id": "fcbdb08e-4048-40e8-a674-fecc476f4b93",
"publisherId": "SirTori.indenticator",
"publisherDisplayName": "SirTori"
},
"name": "indenticator",
"publisher": "SirTori",
"version": "0.6.0"
},
{
"metadata": {
"id": "0229f987-83fd-4576-aa7f-566747840393",
"publisherId": "secanis.jenkinsfile-support",
"publisherDisplayName": "secanis"
},
"name": "jenkinsfile-support",
"publisher": "secanis",
"version": "0.1.0"
},
{
"metadata": {
"id": "c941a679-d500-46a8-b2a9-208063125901",
"publisherId": "wholroyd.jinja",
"publisherDisplayName": "wholroyd"
},
"name": "jinja",
"publisher": "wholroyd",
"version": "0.0.8"
},
{
"metadata": {
"id": "236ff452-49f5-47a4-8928-ab18f5b9c7bf",
"publisherId": "eriklynd.json-tools",
"publisherDisplayName": "eriklynd"
},
"name": "json-tools",
"publisher": "eriklynd",
"version": "1.0.2"
},
{
"metadata": {
"id": "e8b488af-fccf-4adf-b60c-fc7455bea107",
"publisherId": "emilast.LogFileHighlighter",
"publisherDisplayName": "emilast"
},
"name": "LogFileHighlighter",
"publisher": "emilast",
"version": "2.8.0"
},
{
"metadata": {
"id": "5cbdf58a-694a-4aba-af08-61d00842eb03",
"publisherId": "bierner.markdown-preview-github-styles",
"publisherDisplayName": "bierner"
},
"name": "markdown-preview-github-styles",
"publisher": "bierner",
"version": "0.1.6"
},
{
"metadata": {
"id": "2fb9491e-d250-48e4-b23e-cdbb81d655cf",
"publisherId": "AlanWalk.markdown-toc",
"publisherDisplayName": "AlanWalk"
},
"name": "markdown-toc",
"publisher": "AlanWalk",
"version": "1.5.6"
},
{
"metadata": {
"id": "5db78037-f674-459f-a236-db622c427c5b",
"publisherId": "PKief.material-icon-theme",
"publisherDisplayName": "PKief"
},
"name": "material-icon-theme",
"publisher": "PKief",
"version": "4.2.0"
},
{
"metadata": {
"id": "1b747f06-3789-4ebd-ac99-f1fe430c3347",
"publisherId": "alefragnani.project-manager",
"publisherDisplayName": "alefragnani"
},
"name": "project-manager",
"publisher": "alefragnani",
"version": "11.1.0"
},
{
"metadata": {
"id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5",
"publisherId": "ms-python.python",
"publisherDisplayName": "ms-python"
},
"name": "python",
"publisher": "ms-python",
"version": "2020.6.91350"
},
{
"metadata": {
"id": "3792588c-3d35-442d-91ea-fe6a755e8155",
"publisherId": "mechatroner.rainbow-csv",
"publisherDisplayName": "mechatroner"
},
"name": "rainbow-csv",
"publisher": "mechatroner",
"version": "1.7.0"
},
{
"metadata": {
"id": "f95d8fff-f70a-4ae5-bb06-5c47ddbc8fc6",
"publisherId": "timonwong.shellcheck",
"publisherDisplayName": "timonwong"
},
"name": "shellcheck",
"publisher": "timonwong",
"version": "0.9.0"
},
{
"metadata": {
"id": "7d236dd4-6af6-48f4-9464-6bf82ad36aaa",
"publisherId": "ban.spellright",
"publisherDisplayName": "ban"
},
"name": "spellright",
"publisher": "ban",
"version": "3.0.50"
},
{
"metadata": {
"id": "4a23294b-fd16-4c51-9759-da9936474cf8",
"publisherId": "hashicorp.terraform",
"publisherDisplayName": "hashicorp"
},
"name": "terraform",
"publisher": "hashicorp",
"version": "2.0.2"
},
{
"metadata": {
"id": "261cac81-cd7b-4555-bb41-0c2d2bcd3e70",
"publisherId": "Gruntfuggly.todo-tree",
"publisherDisplayName": "Gruntfuggly"
},
"name": "todo-tree",
"publisher": "Gruntfuggly",
"version": "0.0.177"
},
{
"metadata": {
"id": "a225bb1b-d82f-4036-953e-293523b9eb71",
"publisherId": "bibhasdn.unique-lines",
"publisherDisplayName": "bibhasdn"
},
"name": "unique-lines",
"publisher": "bibhasdn",
"version": "1.0.0"
},
{
"metadata": {
"id": "0afa1e21-b4ab-4c87-8f73-31374c4229c0",
"publisherId": "kddejong.vscode-cfn-lint",
"publisherDisplayName": "kddejong"
},
"name": "vscode-cfn-lint",
"publisher": "kddejong",
"version": "0.12.2"
},
{
"metadata": {
"id": "92d01ae4-5a2e-4299-990c-7905798fb719",
"publisherId": "jsynowiec.vscode-insertdatestring",
"publisherDisplayName": "jsynowiec"
},
"name": "vscode-insertdatestring",
"publisher": "jsynowiec",
"version": "2.2.4"
},
{
"metadata": {
"id": "daf8b44d-8aae-4da2-80c5-1f770219f643",
"publisherId": "DavidAnson.vscode-markdownlint",
"publisherDisplayName": "DavidAnson"
},
"name": "vscode-markdownlint",
"publisher": "DavidAnson",
"version": "0.36.1"
},
{
"metadata": {
"id": "9b2c953d-6ad4-46d1-b18e-7e5992d1d8a6",
"publisherId": "akamud.vscode-theme-onedark",
"publisherDisplayName": "akamud"
},
"name": "vscode-theme-onedark",
"publisher": "akamud",
"version": "2.2.1"
},
{
"metadata": {
"id": "2061917f-f76a-458a-8da9-f162de22b97e",
"publisherId": "redhat.vscode-yaml",
"publisherDisplayName": "redhat"
},
"name": "vscode-yaml",
"publisher": "redhat",
"version": "0.8.0"
},
{
"metadata": {
"id": "0cb81da2-1880-4755-9995-0ae9cc728e20",
"publisherId": "DotJoshJohnson.xml",
"publisherDisplayName": "DotJoshJohnson"
},
"name": "xml",
"publisher": "DotJoshJohnson",
"version": "2.5.0"
}
]
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "cmd+k cmd+u",
"command": "editor.action.transformToUppercase"
},
{
"key": "cmd+k cmd+l",
"command": "editor.action.transformToLowercase"
},
{
"key": "cmd+j",
"command": "-editor.action.joinLines",
"when": "editorTextFocus"
},
// Toggle between terminal and editor focus
{ "key": "ctrl+`", "command": "workbench.action.terminal.focus"},
{
"key": "ctrl+`",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
{
"key": "ctrl+shift+a ctrl+shift+c",
"command": "-copy-text.copyAndAppendText"
},
{
"key": "shift+cmd+c",
"command": "copy-text.copyTextOnly",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+c",
"command": "-copy-text.copyTextOnly"
},
{
"key": "ctrl+shift+a ctrl+shift+m",
"command": "-copy-text.copyAndAppendTextWithMetadata"
},
{
"key": "cmd+c",
"command": "editor.action.clipboardCopyAction",
"when": "textInputFocus"
},
{
"key": "cmd+c",
"command": "-editor.action.clipboardCopyAction",
"when": "textInputFocus"
},
{
"key": "shift+cmd+c",
"command": "-workbench.action.terminal.openNativeConsole",
"when": "!terminalFocus"
},
{
"key": "f1",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "ctrl+`",
"command": "-workbench.action.terminal.toggleTerminal"
},
{
"key": "f1",
"command": "-workbench.action.showCommands"
},
{
"key": "shift+alt+d",
"command": "-extension.downloadSettings"
},
{
"key": "shift+alt+u",
"command": "-extension.updateSettings"
}
]
{
"[ansible]": {
"editor.tabSize": 2,
"files.trimTrailingWhitespace": true
},
"[markdown]": {
"editor.quickSuggestions": true
},
"[plaintext]": {
"files.trimTrailingWhitespace": true
},
"[python]": {
"editor.formatOnSave": true
},
"[shellscript]": {
"editor.tabSize": 4,
"files.trimTrailingWhitespace": true
},
"[yaml]": {
"editor.insertSpaces": true,
"editor.tabSize": 2
},
"cfnLint.ignoreRules": [
"E3012",
"W2001",
"W3011"
],
"dateTime.showDayOfMonth": true,
"dateTime.showDayOfWeek": true,
"dateTime.showMonth": true,
"diffEditor.ignoreTrimWhitespace": true,
"diffEditor.renderSideBySide": true,
"editor.acceptSuggestionOnEnter": "off",
"editor.copyWithSyntaxHighlighting": false,
"editor.cursorBlinking": "blink",
"editor.fontFamily": "Hasklig, 'Source Code Pro', Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.fontSize": 12,
"editor.insertSpaces": true,
"editor.minimap.enabled": false,
"editor.multiCursorModifier": "ctrlCmd",
"editor.overviewRulerBorder": false,
"editor.quickSuggestions": true,
"editor.renderControlCharacters": true,
"editor.renderIndentGuides": true,
"editor.renderLineHighlight": "gutter",
"editor.renderWhitespace": "all",
"editor.scrollBeyondLastLine": false,
"editor.snippetSuggestions": "top",
"editor.suggest.filterGraceful": false,
"editor.suggest.maxVisibleSuggestions": 15,
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "log.error",
"settings": {
"fontStyle": "",
"foreground": "#af1f1f"
}
},
{
"scope": "log.warning",
"settings": {
"fontStyle": "",
"foreground": "#f4ad42"
}
}
]
},
"editor.wordWrap": "off",
"explorer.confirmDragAndDrop": false,
"explorer.openEditors.visible": 0,
"extensions.ignoreRecommendations": false,
"files.associations": {
"**/handler/*.yaml": "ansible-advanced",
"**/playbooks/**/*.yaml": "ansible-advanced",
"**/roles/**/*.yaml": "ansible-advanced",
"**/tasks/**/*.yaml": "ansible-advanced",
"*.log.*": "log",
"*.template": "json",
".gitingore": "ini",
".yamllint": "yaml",
"Dockerfile-*": "dockerfile",
"Vagrantfile": "ruby",
"inventory.*": "ini",
"setup.cfg": "ini"
},
"files.eol": "\n",
"files.trimFinalNewlines": true,
"git.autofetch": true,
"git.openDiffOnClick": true,
"markdownlint.config": {
"MD007": {
"indent": 4
},
"MD013": false,
"MD014": false,
"MD024": false,
"MD033": false,
"MD040": false
},
"python.formatting.blackArgs": [
"--line-length=88"
],
"python.formatting.provider": "black",
"python.linting.pycodestyleEnabled": true,
"python.linting.pycodestylePath": "~/.pyenv/shims/pycodestyle",
"python.linting.pylintArgs": [
"--rcfile=setup.cfg"
],
"python.linting.pylintEnabled": true,
"python.pythonPath": "~/.pyenv/shims/python",
"search.showLineNumbers": true,
"shellcheck.customArgs": [
"--shell=bash"
],
"spellright.documentTypes": [
"markdown",
"latex",
"plaintext"
],
"spellright.groupDictionaries": false,
"spellright.language": [
"en_GB"
],
"sync.forceUpload": true,
"sync.gist": "3b04d93e0f38eab2e873ecf0508b784d",
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"terminal.external.osxExec": "iTerm.app",
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.cursorStyle": "line",
"terminal.integrated.fontFamily": "Hasklig, 'Source Code Pro', Menlo, Monaco, 'Courier New', monospace",
"terminal.integrated.fontWeight": "normal",
"terminal.integrated.fontWeightBold": "normal",
"terminal.integrated.macOptionIsMeta": true,
"terminal.integrated.scrollback": 5000,
"terminal.integrated.shell.osx": "/usr/local/bin/bash",
"todo-tree.general.statusBar": "tags",
"todo-tree.tree.disableCompactFolders": true,
"todo-tree.tree.flat": true,
"todo-tree.tree.grouped": true,
"todo-tree.tree.hideTreeWhenEmpty": false,
"todo-tree.tree.showCountsInTree": true,
"typescript.npm": "/usr/local/bin/npm",
"window.title": "${activeEditorMedium}${separator}${rootName}",
"window.zoomLevel": 0,
"workbench.colorCustomizations": {
"editorLineNumber.activeForeground": "#af1f1f"
},
"workbench.colorTheme": "Atom One Dark",
"workbench.editor.enablePreview": true,
"workbench.editor.highlightModifiedTabs": true,
"workbench.fontAliasing": "auto",
"workbench.iconTheme": "material-icon-theme",
"workbench.sideBar.location": "right",
"workbench.startupEditor": "none",
"yaml.customTags": [
"!And",
"!Base64",
"!Cidr sequence",
"!Equals sequence",
"!FindInMap sequence",
"!GetAtt",
"!GetAZs",
"!If sequence",
"!ImportValue",
"!Join sequence",
"!Not sequence",
"!Or sequence",
"!Ref",
"!Select sequence",
"!Select",
"!set_stack_termination_protection",
"!Split",
"!ssm",
"!stack_output_external",
"!stack_output",
"!Sub sequence",
"!Sub",
"!And sequence",
"!If",
"!Not",
"!Equals",
"!Or",
"!FindInMap",
"!Join",
"!Cidr",
"!ImportValue sequence",
"!Split sequence"
],
"yaml.format.enable": true,
"yaml.format.printWidth": 999,
"yaml.format.singleQuote": true,
"yaml.validate": false,
"workbench.list.smoothScrolling": true
}
{
"table": {
"prefix": "table",
"description": "insert markdown table",
"body": [
"| a| b | c |",
"| :-- | --: | :-: |",
"| left | right | centre |",
"| $0 | | |",
"| | | |",
]
},
"link": {
"prefix": "link",
"description": "insert markdown link",
"body": [
"[${1:text}](https://${2:link})$0"
]
}
}
{
"hashbang": {
"prefix": "hashbangenvbash",
"description": "hash bang env bash",
"body": [
"#!/usr/bin/env bash",
"",
"$0"
]
},
"function": {
"prefix": "function",
"description": "add function",
"body": [
"function $1() {",
" $2"
"}"
]
},
"date": {
"prefix": "date",
"description": "formatted date",
"body": [
"$(date +%Y%m%d-%s)"
]
},
"for over numbers - single line": {
"prefix": "for",
"description": "for loop over numbers - single line",
"body": [
"for i in {1..${1:10}} ; do ${2:echo \\$i} ; done",
"$0"
]
},
"for over output - single line": {
"prefix": "for",
"description": "for loop over command results - single line",
"body": [
"for f in $(${1:ls *.*}) ; do ${2:echo \\$f} ; done",
"$0"
]
},
"while - single line": {
"prefix": "while",
"description": "while - single line",
"body": [
"while true ; do ${1:echo 'hello'} ; ${2:sleep 5} ; done",
"$0"
]
},
"if directory does not exist": {
"prefix": "if",
"description": "if directory does not exist - single line",
"body": [
"[[ ! -d $2 ]] && ${1:mkdir} -p $2",
"$0"
]
},
"if file exists": {
"prefix": "if",
"description": "if file exists - single line",
"body": [
"[[ -f $2 ]] && ${1:echo} $2}",
"$0"
]
},
"cat to file": {
"prefix": "cat",
"description": "cat to file",
"body": [
"cat << EOF > ${1:/path/to/file}",
"${2:echo 'hello'}",
"EOF",
"$0"
]
},
"cat to file - don't interpret $": {
"prefix": "cat",
"description": "cat to file - don't interpret $",
"body": [
"cat << 'EOF' > ${1:/path/to/file}",
"${2:echo '\\$HELLO'}",
"EOF",
"$0"
]
}
}
{
"String with regex": {
"prefix": "Type:",
"description": "String with regex",
"body": [
"Type: String",
"Description: $1",
"ConstraintDescription: Must contain only alphanumeric characters.",
"AllowedPattern: '[a-zA-Z0-9]+'",
"MinLength: $2",
"MaxLength: $0"
]
},
"String with values": {
"prefix": "Type:",
"description": "String with values",
"body": [
"Type: String",
"Description: $1",
"AllowedValues:",
" - $2",
" - $3",
"Default: $0"
]
},
"Number": {
"prefix": "Type:",
"description": "Number",
"body": [
"Type: Number",
"Description: $1",
"MinValue: $2",
"MaxValue: $3",
"Default: $0"
]
},
"!Not": {
"prefix": "!Not",
"description": "!Not",
"body": [
"!Not",
" - !Equals",
" - !Ref '$1'",
" - '$0'"
]
},
"!Or": {
"prefix": "!Or",
"description": "!Or",
"body": [
"!Or",
" - !Equals",
" - !Ref '$1'",
" - '$2'",
" - !Equals",
" - !Ref '$1'",
" - '$0'"
]
},
"!If": {
"prefix": "!If",
"description": "!If",
"body": [
"!If",
" - $1",
" - !Ref '$2'",
" - !Ref '${3:AWS::NoValue}'$0"
]
},
"AWS::AccountId": {
"prefix": "AWS::",
"description": "AccountId",
"body": [
"AWS::AccountId"
]
},
"AWS::NoValue": {
"prefix": "AWS::",
"description": "NoValue",
"body": [
"AWS::NoValue"
]
},
"AWS::Region": {
"prefix": "AWS::",
"description": "Region",
"body": [
"AWS::Region"
]
},
"AWS::StackId": {
"prefix": "AWS::",
"description": "StackId",
"body": [
"AWS::StackId"
]
},
"AWS::StackName": {
"prefix": "AWS::",
"description": "StackName",
"body": [
"AWS::StackName"
]
},
"AWS::URLSuffix": {
"prefix": "AWS::",
"description": "URLSuffix",
"body": [
"AWS::URLSuffix"
]
}
}
{
"id": "02358e392de9ca098ed34073c7c0573a",
"token": "",
"http_proxy": ""
}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Run tests",
"type": "shell",
"command": "./tests/test.sh",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "shared",
"focus": false
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment