Skip to content

Instantly share code, notes, and snippets.

@joncalhoun
Last active August 17, 2020 14:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save joncalhoun/9790a444b4baf8f22ede3e3fe8bca3a9 to your computer and use it in GitHub Desktop.
Save joncalhoun/9790a444b4baf8f22ede3e3fe8bca3a9 to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-08-17T14:57:52.730Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "cb5ffd62-3768-4f92-83a0-ccf84e22ddf4",
"publisherId": "kevinkyang.auto-comment-blocks",
"publisherDisplayName": "kevinkyang"
},
"name": "auto-comment-blocks",
"publisher": "kevinkyang",
"version": "1.0.1"
},
{
"metadata": {
"id": "7a0110bb-231a-4598-aa1b-0769ea46d28b",
"publisherId": "aaron-bond.better-comments",
"publisherDisplayName": "aaron-bond"
},
"name": "better-comments",
"publisher": "aaron-bond",
"version": "2.1.0"
},
{
"metadata": {
"id": "464f4ac7-af65-4aa9-9907-4ba7fa419085",
"publisherId": "bungcip.better-toml",
"publisherDisplayName": "bungcip"
},
"name": "better-toml",
"publisher": "bungcip",
"version": "0.3.2"
},
{
"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": "2aa040bf-c73a-455d-8946-5c6cc83b8019",
"publisherId": "wmaurer.change-case",
"publisherDisplayName": "wmaurer"
},
"name": "change-case",
"publisher": "wmaurer",
"version": "1.0.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": "f6dbd813-b0a0-42c1-90ea-10dde9d925a7",
"publisherId": "streetsidesoftware.code-spell-checker",
"publisherDisplayName": "streetsidesoftware"
},
"name": "code-spell-checker",
"publisher": "streetsidesoftware",
"version": "1.9.0"
},
{
"metadata": {
"id": "121396ad-85a1-45ec-9fd1-d95028a847f5",
"publisherId": "naumovs.color-highlight",
"publisherDisplayName": "naumovs"
},
"name": "color-highlight",
"publisher": "naumovs",
"version": "2.3.0"
},
{
"metadata": {
"id": "532533c9-a894-4a58-9eee-bbfbe7c06f71",
"publisherId": "mikestead.dotenv",
"publisherDisplayName": "mikestead"
},
"name": "dotenv",
"publisher": "mikestead",
"version": "1.0.1"
},
{
"metadata": {
"id": "081cd2e9-bc51-4ea3-977e-544bed2e33a8",
"publisherId": "bierner.emojisense",
"publisherDisplayName": "bierner"
},
"name": "emojisense",
"publisher": "bierner",
"version": "0.7.0"
},
{
"metadata": {
"id": "828a25d0-b7db-4dbd-8386-35a86c357025",
"publisherId": "fosshaas.fontsize-shortcuts",
"publisherDisplayName": "fosshaas"
},
"name": "fontsize-shortcuts",
"publisher": "fosshaas",
"version": "1.5.0"
},
{
"metadata": {
"id": "3e891cf9-53cb-49a3-8d01-8f0b1f0afb29",
"publisherId": "codezombiech.gitignore",
"publisherDisplayName": "codezombiech"
},
"name": "gitignore",
"publisher": "codezombiech",
"version": "0.6.0"
},
{
"metadata": {
"id": "d6f6cfea-4b6f-41f4-b571-6ad2ab7918da",
"publisherId": "golang.go",
"publisherDisplayName": "golang"
},
"name": "go",
"publisher": "golang",
"version": "0.16.1"
},
{
"metadata": {
"id": "3b3d36c0-6af6-4ede-aaba-6f460423ddea",
"publisherId": "casualjim.gotemplate",
"publisherDisplayName": "casualjim"
},
"name": "gotemplate",
"publisher": "casualjim",
"version": "0.4.0"
},
{
"metadata": {
"id": "b2e6b00c-646e-4e31-81e0-201156151842",
"publisherId": "v4run.gotimeformat",
"publisherDisplayName": "v4run"
},
"name": "gotimeformat",
"publisher": "v4run",
"version": "1.0.1"
},
{
"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": "849ffb6c-e755-4e6e-adc2-c33eaaf0d0fc",
"publisherId": "bradymholt.pgformatter",
"publisherDisplayName": "bradymholt"
},
"name": "pgformatter",
"publisher": "bradymholt",
"version": "1.14.0"
},
{
"metadata": {
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
"publisherId": "esbenp.prettier-vscode",
"publisherDisplayName": "esbenp"
},
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "5.1.3"
},
{
"metadata": {
"id": "7a6db49e-50ff-4e96-b35d-3042129cc632",
"publisherId": "passionkind.prettier-vscode-with-tabs",
"publisherDisplayName": "passionkind"
},
"name": "prettier-vscode-with-tabs",
"publisher": "passionkind",
"version": "1.1.0"
},
{
"metadata": {
"id": "e05d98bf-3735-4c1e-9fae-86ef0a52e19f",
"publisherId": "quicktype.quicktype",
"publisherDisplayName": "quicktype"
},
"name": "quicktype",
"publisher": "quicktype",
"version": "12.0.46"
},
{
"metadata": {
"id": "21e07abb-b9df-418d-8224-c96f1290ec7f",
"publisherId": "rafaelmaiolla.remote-vscode",
"publisherDisplayName": "rafaelmaiolla"
},
"name": "remote-vscode",
"publisher": "rafaelmaiolla",
"version": "1.1.0"
},
{
"metadata": {
"id": "b24a13f5-4e50-4d9a-ab0a-87f47d9fdfcb",
"publisherId": "stkb.rewrap",
"publisherDisplayName": "stkb"
},
"name": "rewrap",
"publisher": "stkb",
"version": "1.13.0"
},
{
"metadata": {
"id": "5fb19573-2183-4cf2-b53d-0fb869dae7ae",
"publisherId": "foxundermoon.shell-format",
"publisherDisplayName": "foxundermoon"
},
"name": "shell-format",
"publisher": "foxundermoon",
"version": "7.0.1"
},
{
"metadata": {
"id": "529697b9-b343-4b1c-ba2f-f5ef692132d4",
"publisherId": "ms-vscode.sublime-keybindings",
"publisherDisplayName": "ms-vscode"
},
"name": "sublime-keybindings",
"publisher": "ms-vscode",
"version": "4.0.7"
},
{
"metadata": {
"id": "e5fd2b56-1637-4d4f-8252-6c9d416f9a28",
"publisherId": "RobbOwen.synthwave-vscode",
"publisherDisplayName": "RobbOwen"
},
"name": "synthwave-vscode",
"publisher": "RobbOwen",
"version": "0.1.6"
},
{
"metadata": {
"id": "4e44877c-1c8d-4f9c-ba86-1372d0fbeeb1",
"publisherId": "dracula-theme.theme-dracula",
"publisherDisplayName": "dracula-theme"
},
"name": "theme-dracula",
"publisher": "dracula-theme",
"version": "2.22.1"
},
{
"metadata": {
"id": "6298f301-2710-438e-9c5c-45e31ee5a643",
"publisherId": "yomed.theme-dracula-soft",
"publisherDisplayName": "yomed"
},
"name": "theme-dracula-soft",
"publisher": "yomed",
"version": "1.0.4"
},
{
"metadata": {
"id": "37d7747f-e652-4eac-83de-f2939f7e2121",
"publisherId": "anseki.vscode-color",
"publisherDisplayName": "anseki"
},
"name": "vscode-color",
"publisher": "anseki",
"version": "0.4.5"
},
{
"metadata": {
"id": "445ba381-f232-4150-9056-d790bd76d698",
"publisherId": "kamikillerto.vscode-colorize",
"publisherDisplayName": "kamikillerto"
},
"name": "vscode-colorize",
"publisher": "kamikillerto",
"version": "0.8.17"
},
{
"metadata": {
"id": "1b160753-ae5e-42bb-82ad-d115ce5c10f4",
"publisherId": "be5invis.vscode-custom-css",
"publisherDisplayName": "be5invis"
},
"name": "vscode-custom-css",
"publisher": "be5invis",
"version": "3.0.10"
},
{
"metadata": {
"id": "9ac1fe12-bae1-41c1-b105-5d2a529f2d5b",
"publisherId": "hoovercj.vscode-dimmer",
"publisherDisplayName": "hoovercj"
},
"name": "vscode-dimmer",
"publisher": "hoovercj",
"version": "2.1.0"
},
{
"metadata": {
"id": "0479fc1c-3d67-49f9-b087-fb9069afe48f",
"publisherId": "ms-azuretools.vscode-docker",
"publisherDisplayName": "ms-azuretools"
},
"name": "vscode-docker",
"publisher": "ms-azuretools",
"version": "1.4.1"
},
{
"metadata": {
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a",
"publisherId": "dbaeumer.vscode-eslint",
"publisherDisplayName": "dbaeumer"
},
"name": "vscode-eslint",
"publisher": "dbaeumer",
"version": "2.1.8"
},
{
"metadata": {
"id": "c0c04a3d-f3cd-44ce-a9dd-61ad33504bc7",
"publisherId": "piotrpalarz.vscode-gitignore-generator",
"publisherDisplayName": "piotrpalarz"
},
"name": "vscode-gitignore-generator",
"publisher": "piotrpalarz",
"version": "1.0.2"
},
{
"metadata": {
"id": "92d01ae4-5a2e-4299-990c-7905798fb719",
"publisherId": "jsynowiec.vscode-insertdatestring",
"publisherDisplayName": "jsynowiec"
},
"name": "vscode-insertdatestring",
"publisher": "jsynowiec",
"version": "2.3.0"
},
{
"metadata": {
"id": "cc4e97b3-c252-4e12-983f-ee5d2101c2cd",
"publisherId": "ms-ossdata.vscode-postgresql",
"publisherDisplayName": "ms-ossdata"
},
"name": "vscode-postgresql",
"publisher": "ms-ossdata",
"version": "0.3.0"
},
{
"metadata": {
"id": "4db62a7c-7d70-419c-96d2-6c3a4dc77ea5",
"publisherId": "bradlc.vscode-tailwindcss",
"publisherDisplayName": "bradlc"
},
"name": "vscode-tailwindcss",
"publisher": "bradlc",
"version": "0.4.1"
},
{
"metadata": {
"id": "97a08c5f-6667-4242-a5c5-045dfb6bd4b9",
"publisherId": "wayou.vscode-todo-highlight",
"publisherDisplayName": "wayou"
},
"name": "vscode-todo-highlight",
"publisher": "wayou",
"version": "1.0.4"
},
{
"metadata": {
"id": "0661e679-8a32-433e-baeb-8980f53edb55",
"publisherId": "fabiospampinato.vscode-todo-plus",
"publisherDisplayName": "fabiospampinato"
},
"name": "vscode-todo-plus",
"publisher": "fabiospampinato",
"version": "4.17.1"
},
{
"metadata": {
"id": "0cb81da2-1880-4755-9995-0ae9cc728e20",
"publisherId": "DotJoshJohnson.xml",
"publisherDisplayName": "DotJoshJohnson"
},
"name": "xml",
"publisher": "DotJoshJohnson",
"version": "2.5.1"
}
]
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+shift+e",
"command": "cursorEndSelect",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+a",
"command": "cursorHomeSelect",
"when": "editorTextFocus"
},
{
"key": "cmd+b",
"command": "workbench.action.toggleActivityBarVisibility"
},
{
"key": "alt+cmd+1",
"command": "workbench.action.joinTwoGroups"
},
{
"key": "alt+cmd+3",
"command": "workbench.action.toggleEditorGroupLayout"
},
{
"key": "alt+cmd+0",
"command": "-workbench.action.toggleEditorGroupLayout"
},
{
"key": "alt+cmd+up",
"command": "editor.action.referenceSearch.trigger",
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "shift+f12",
"command": "-editor.action.referenceSearch.trigger",
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "shift+cmd+c",
"command": "-workbench.action.terminal.openNativeConsole",
"when": "!terminalFocus"
},
{
"key": "cmd+-",
"command": "-workbench.action.zoomOut"
},
{
"key": "cmd+=",
"command": "-workbench.action.zoomIn"
},
{
"key": "cmd+numpad0",
"command": "-workbench.action.zoomReset"
},
{
"key": "tab",
"command": "-acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible"
},
{
"key": "tab",
"command": "-insertSnippet",
"when": "editorTextFocus && hasSnippetCompletions && !editorTabMovesFocus && !inSnippetMode"
},
{
"key": "tab",
"command": "-acceptSelectedSuggestion",
"when": "suggestWidgetVisible && textInputFocus"
},
{
"key": "shift+cmd+space",
"command": "-editor.action.smartSelect.grow",
"when": "editorTextFocus"
},
{
"key": "cmd+k cmd+j",
"command": "workbench.action.focusLeftGroup"
},
{
"key": "cmd+k cmd+left",
"command": "-workbench.action.focusLeftGroup"
},
{
"key": "cmd+k cmd+l",
"command": "workbench.action.focusRightGroup"
},
{
"key": "cmd+k cmd+right",
"command": "-workbench.action.focusRightGroup"
},
{
"key": "cmd+k shift+cmd+j",
"command": "workbench.action.moveEditorToLeftGroup"
},
{
"key": "cmd+k shift+cmd+l",
"command": "workbench.action.moveEditorToRightGroup"
},
{
"key": "cmd+enter",
"command": "todo.toggleDone",
"when": "editorTextFocus && editorLangId == 'todo'"
},
{
"key": "alt+d",
"command": "-todo.toggleDone",
"when": "editorTextFocus && editorLangId == 'todo'"
},
{
"key": "shift+cmd+enter",
"command": "todo.toggleBox",
"when": "editorTextFocus && editorLangId == 'todo'"
},
{
"key": "alt+enter",
"command": "-todo.toggleBox",
"when": "editorTextFocus && editorLangId == 'todo'"
},
{
"key": "cmd+enter",
"command": "-todo.toggleBox",
"when": "editorTextFocus && editorLangId == 'todo'"
}
]
{
"workbench.editor.closeEmptyGroups": false,
"editor.rulers": [80],
"go.enableCodeLens": {
"references": false,
"runtest": false
},
"search.useIgnoreFiles": false,
"workbench.settings.openDefaultSettings": true,
// "window.openFoldersInNewWindow": "default",
"workbench.editor.enablePreview": false,
"workbench.activityBar.visible": false,
"editor.fontSize": 17,
"editor.fontFamily": "Meslo LGSDZ Nerd Font, Menlo, Monaco, 'Courier New', monospace",
"editor.wordWrap": "bounded",
"editor.tabSize": 2,
"editor.trimAutoWhitespace": true,
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/node_modules": true
},
"editor.dragAndDrop": false,
"editor.formatOnSave": true,
"[markdown]": {
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"editor.glyphMargin": false,
"editor.wordWrap": "bounded",
"editor.tabSize": 2
},
"editor.renderLineHighlight": "all",
// Go specific settings
// Expands funcs into Println(a ...interface{})
"go.useCodeSnippetsOnFunctionSuggest": true,
"go.addTags": {
"promptForTags": true
},
// Whether or not to show types in autocompletes
// "go.useCodeSnippetsOnFunctionSuggestWithoutType": true,
// Use sourcegraph Go language server
// "go.useLanguageServer": true,
// https://marketplace.visualstudio.com/items?itemName=fosshaas.fontsize-shortcuts
"fontshortcuts.defaultFontSize": 20,
"fontshortcuts.defaultTerminalFontSize": 20,
"fontshortcuts.step": 1,
"sublimeTextKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.minimap.enabled": false,
"editor.snippetSuggestions": "inline",
"window.zoomLevel": 0,
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "untitled",
"sync.gist": "9790a444b4baf8f22ede3e3fe8bca3a9",
"sync.lastUpload": "2018-06-15T19:10:53.885Z",
"sync.autoDownload": false,
"sync.autoUpload": false,
"sync.lastDownload": "",
"sync.forceDownload": false,
"sync.anonymousGist": false,
"sync.host": "",
"sync.pathPrefix": "",
"sync.quietSync": false,
"sync.askGistName": false,
"gitlens.hovers.currentLine.over": "line",
"workbench.colorTheme": "Dracula",
"workbench.sideBar.location": "left",
"editor.renderControlCharacters": false,
"editor.tabCompletion": "off",
"editor.lineHeight": 0,
"files.insertFinalNewline": true,
"editor.scrollBeyondLastLine": true,
"files.trimTrailingWhitespace": true,
"editor.renderLineHighlight": "all",
"workbench.colorCustomizations": {
"editor.lineHighlightBackground": "#44475a"
},
"cSpell.userWords": [
"Chronal",
"Signup",
"gorm",
"iframe",
"json",
"kubernetes",
"microservices",
"oauth",
"overcommunicate",
"postgres",
"repurpose",
"screencasts",
"signin",
"sqlx",
"toolchain",
"unexported",
"unmarhsal",
"unmarhsal json",
"unmarshaled",
"unmarshaling"
],
// Enable/disable autoclosing of HTML tags.
"html.autoClosingTags": false,
"files.eol": "\n",
"sync.removeExtensions": true,
"sync.syncExtensions": true,
//-------- Remote VSCode configuration --------
// Port number to use for connection.
"remote.port": 52698,
// Launch the server on start up.
"remote.onstartup": true,
// Address to listen on.
"remote.host": "127.0.0.1",
// If set to true, error for remote.port already in use won't be shown anymore.
"remote.dontShowPortAlreadyInUseError": true,
"material-icon-theme.folders.color": "#90a4ae",
"material-icon-theme.activeIconPack": "react_redux",
// The gohtml setting below doesn't work :(
// "[gohtml]": {
// "comments": {
// "blockComment": [ "<!--", "-->" ]
// },
// "blockComment": [ "<!--", "-->" ]
// },
// Date format to be used - RFC1123Z
"insertDateString.format": "DDD, DD MMM YYYY hh:mm:ss ZZZZ",
"material-icon-theme.files.associations": {
"*.gohtml": "yaml"
},
"dimmer.when": "selection",
"dimmer.enabled": true,
"files.associations": {
"*.gohtml": "gohtml",
"*.js": "javascriptreact"
},
"editor.hover.delay": 500,
"editor.hover.enabled": true,
"terminal.integrated.fontSize": 12,
"vscode_custom_css.imports": ["file:///Users/jon/synthwave84.css"],
"vscode_custom_css.policy": true,
"explorer.confirmDragAndDrop": false,
"javascript.updateImportsOnFileMove.enabled": "always",
// Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.
"editor.acceptSuggestionOnCommitCharacter": false,
"prettier.trailingComma": "all",
"go.useLanguageServer": true,
// "go.languageServerExperimentalFeatures": {
// "diagnostics": true // for build and vet errors as you type
// },
"[go]": {
"editor.acceptSuggestionOnEnter": "smart",
"editor.snippetSuggestions": "inline",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"editor.codeActionsOnSaveTimeout": 1500
},
"gopls": {
"usePlaceholders": true // add parameter placeholders when completing a function
},
"go.languageServerFlags": [
"-rpc.trace", // for more detailed debug logging
"serve",
"--debug=localhost:6060" // to investigate memory usage, see profiles
],
"[go]": {
"editor.insertSpaces": true,
"editor.detectIndentation": false
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"better-comments.multilineComments": true,
"better-comments.tags": [
{
"tag": "!",
"color": "#FF2D00",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "?",
"color": "#3498DB",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "//",
"color": "#474747",
"strikethrough": true,
"backgroundColor": "transparent"
},
{
"tag": "todo",
"color": "#FF8C00",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "*",
"color": "#98C379",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "-",
"color": "#f1fa8c",
"strikethrough": false,
"backgroundColor": "transparent"
}
],
"json.format.enable": false,
"editor.largeFileOptimizations": false,
"[dockerfile]": {
"editor.defaultFormatter": "ms-azuretools.vscode-docker"
},
"[sql]": {
"editor.defaultFormatter": "bradymholt.pgformatter"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"prettier.printWidth": 80,
"prettier.useEditorConfig": false,
"prettier.jsxBracketSameLine": true,
"prettier.singleQuote": false
}
{
// Place your snippets for go 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"
// }
"Bolt Transaction Closure": {
"prefix": "btx",
"body": ["func(tx *bolt.Tx) error {", "\t$1", "\treturn nil", "}"],
"description": "Create a boltdb transaction closure"
},
"Main with run func": {
"prefix": "main",
"body": [
"package main",
"",
"import (",
" \"fmt\"",
" \"io\"",
" \"os\"",
")",
"",
"func main() {",
" if err := run(os.Args, os.Stdout); err != nil {",
" fmt.Fprintf(os.Stderr, \"%s\\n\", err)",
" os.Exit(1)",
" }",
"}",
"",
"func run(args []string, stdout io.Writer) error {",
" $1",
" return nil",
"}"
]
}
}
{
// Place your snippets for gogo 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"
// }
}
{
// 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"
// }
"React Component (bare)": {
"prefix": "rca",
"body": [
"import React from \"react\";",
"",
"function $1(props) {",
" return ($2);",
"}",
"",
"export default $1;"
]
},
}
{
// Place your snippets for markdown 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"
// }
"Hugo_Aside_Calhoun": {
"description": "Creates an aside shortcode. This is custom to the Calhoun.io hugo layout.",
"prefix": "aside",
"body": [
"{{<aside title=\"${1:Some title}\">}}",
"$2",
"{{</aside>}}"
],
"scope": "markdown,md"
},
"Hugo_Code_Snippet_w_Playground_Link": {
"prefix": "playground",
"body": [
"{{<playground $1>}}",
"$2",
"{{</playground>}}"
],
"scope": "markdown,md"
},
"Hugo_Code_Snippet_w_Github_Link": {
"prefix": "ongithub",
"body": [
"{{<ongithub \"$1\">}}",
"$2",
"{{</ongithub>}}"
],
"scope": "markdown,md"
},
"Hugo_Reference_Link": {
"prefix": "reflink",
"body": [
"{{<reflink ref=\"post/$1/index.md\" text=\"$2\">}}"
],
"scope": "markdown,md"
},
"Hugo_Note": {
"prefix": "note",
"body": [
"{{<note>}}",
"*$1*",
"{{</note>}}"
],
"scope": "markdown,md"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment