Skip to content

Instantly share code, notes, and snippets.

@liximomo
Last active November 15, 2019 02:57
Show Gist options
  • Save liximomo/44cd72062ff5543cdb4d509dce3449eb to your computer and use it in GitHub Desktop.
Save liximomo/44cd72062ff5543cdb4d509dce3449eb to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-11-15T02:57:28.608Z","extensionVersion":"v3.4.2"}
[
{
"metadata": {
"id": "6e440e71-8ed9-4f25-bb78-4b13096b8a03",
"publisherId": "formulahendry.auto-rename-tag",
"publisherDisplayName": "formulahendry"
},
"name": "auto-rename-tag",
"publisher": "formulahendry",
"version": "0.1.0"
},
{
"metadata": {
"id": "b689fcc8-d494-4dbf-a228-2c694a578afc",
"publisherId": "alefragnani.Bookmarks",
"publisherDisplayName": "alefragnani"
},
"name": "Bookmarks",
"publisher": "alefragnani",
"version": "10.5.0"
},
{
"metadata": {
"id": "5a6e2b21-1d61-4acd-b31b-907f9c23f18a",
"publisherId": "CoenraadS.bracket-pair-colorizer-2",
"publisherDisplayName": "CoenraadS"
},
"name": "bracket-pair-colorizer-2",
"publisher": "CoenraadS",
"version": "0.0.28"
},
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.4.2"
},
{
"metadata": {
"id": "90a838c3-675b-4b87-b7a5-75ea88432cce",
"publisherId": "joelday.docthis",
"publisherDisplayName": "joelday"
},
"name": "docthis",
"publisher": "joelday",
"version": "0.7.1"
},
{
"metadata": {
"id": "532533c9-a894-4a58-9eee-bbfbe7c06f71",
"publisherId": "mikestead.dotenv",
"publisherDisplayName": "mikestead"
},
"name": "dotenv",
"publisher": "mikestead",
"version": "1.0.1"
},
{
"metadata": {
"id": "6b8be8ff-4ed6-4534-99e6-c37b7a82aea6",
"publisherId": "rifi2k.format-html-in-php",
"publisherDisplayName": "rifi2k"
},
"name": "format-html-in-php",
"publisher": "rifi2k",
"version": "1.6.1"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "10.0.0"
},
{
"metadata": {
"id": "d6f6cfea-4b6f-41f4-b571-6ad2ab7918da",
"publisherId": "ms-vscode.Go",
"publisherDisplayName": "ms-vscode"
},
"name": "Go",
"publisher": "ms-vscode",
"version": "0.11.6"
},
{
"metadata": {
"id": "a2cec723-5349-460d-9de9-0fd1f8d3456f",
"publisherId": "xabikos.JavaScriptSnippets",
"publisherDisplayName": "xabikos"
},
"name": "JavaScriptSnippets",
"publisher": "xabikos",
"version": "1.7.2"
},
{
"metadata": {
"id": "98790d67-10fa-497c-9113-f6c7489207b2",
"publisherId": "yzhang.markdown-all-in-one",
"publisherDisplayName": "yzhang"
},
"name": "markdown-all-in-one",
"publisher": "yzhang",
"version": "2.4.2"
},
{
"metadata": {
"id": "a41c1549-4053-44d4-bf30-60fc809b4a86",
"publisherId": "christian-kohler.path-intellisense",
"publisherDisplayName": "christian-kohler"
},
"name": "path-intellisense",
"publisher": "christian-kohler",
"version": "1.4.2"
},
{
"metadata": {
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
"publisherId": "esbenp.prettier-vscode",
"publisherDisplayName": "esbenp"
},
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "3.6.0"
},
{
"metadata": {
"id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5",
"publisherId": "ms-python.python",
"publisherDisplayName": "ms-python"
},
"name": "python",
"publisher": "ms-python",
"version": "2019.9.34911"
},
{
"metadata": {
"id": "c807e072-5951-4a01-9542-450f946c7ec1",
"publisherId": "xabikos.ReactSnippets",
"publisherDisplayName": "xabikos"
},
"name": "ReactSnippets",
"publisher": "xabikos",
"version": "2.3.0"
},
{
"metadata": {
"id": "9a330091-5b29-403c-b37c-f9d4ae06bd7c",
"publisherId": "liximomo.remotefs",
"publisherDisplayName": "liximomo"
},
"name": "remotefs",
"publisher": "liximomo",
"version": "0.0.16"
},
{
"metadata": {
"id": "ee108066-df8b-43ae-9a83-e6c11400a759",
"publisherId": "jasonnutter.search-node-modules",
"publisherDisplayName": "jasonnutter"
},
"name": "search-node-modules",
"publisher": "jasonnutter",
"version": "1.3.0"
},
{
"metadata": {
"id": "ed3575fb-5812-4a43-9efb-c19649137420",
"publisherId": "liximomo.sftp",
"publisherDisplayName": "liximomo"
},
"name": "sftp",
"publisher": "liximomo",
"version": "1.12.9"
},
{
"metadata": {
"id": "0a54894e-ea5c-49ff-bbd4-c363c3745265",
"publisherId": "adamwalzer.string-converter",
"publisherDisplayName": "adamwalzer"
},
"name": "string-converter",
"publisher": "adamwalzer",
"version": "0.1.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.3"
},
{
"metadata": {
"id": "6623619a-676d-4cde-943f-a3c193b44fc0",
"publisherId": "ChakrounAnas.turbo-console-log",
"publisherDisplayName": "ChakrounAnas"
},
"name": "turbo-console-log",
"publisher": "ChakrounAnas",
"version": "1.3.1"
},
{
"metadata": {
"id": "2f5dd8cb-d251-4d70-abfe-ddebcb077483",
"publisherId": "octref.vetur",
"publisherDisplayName": "octref"
},
"name": "vetur",
"publisher": "octref",
"version": "0.22.3"
},
{
"metadata": {
"id": "dffaf5a1-2219-434b-9d87-cb586fd59260",
"publisherId": "Equinusocio.vsc-material-theme",
"publisherDisplayName": "Equinusocio"
},
"name": "vsc-material-theme",
"publisher": "Equinusocio",
"version": "30.0.0"
},
{
"metadata": {
"id": "0479fc1c-3d67-49f9-b087-fb9069afe48f",
"publisherId": "ms-azuretools.vscode-docker",
"publisherDisplayName": "ms-azuretools"
},
"name": "vscode-docker",
"publisher": "ms-azuretools",
"version": "0.8.1"
},
{
"metadata": {
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a",
"publisherId": "dbaeumer.vscode-eslint",
"publisherDisplayName": "dbaeumer"
},
"name": "vscode-eslint",
"publisher": "dbaeumer",
"version": "1.9.1"
},
{
"metadata": {
"id": "1d3d1fb2-0d8f-47ed-bfce-990b8ddfc9d8",
"publisherId": "zxh404.vscode-proto3",
"publisherDisplayName": "zxh404"
},
"name": "vscode-proto3",
"publisher": "zxh404",
"version": "0.3.0"
},
{
"metadata": {
"id": "c4fac055-b854-41f0-9610-f8a9d62e9b89",
"publisherId": "dbankier.vscode-quick-select",
"publisherDisplayName": "dbankier"
},
"name": "vscode-quick-select",
"publisher": "dbankier",
"version": "0.2.8"
},
{
"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.2.2"
},
{
"metadata": {
"id": "2061917f-f76a-458a-8da9-f162de22b97e",
"publisherId": "redhat.vscode-yaml",
"publisherDisplayName": "redhat"
},
"name": "vscode-yaml",
"publisher": "redhat",
"version": "0.5.3"
},
{
"metadata": {
"id": "876e8f93-74d0-4f4f-91b7-34a09f19f444",
"publisherId": "VisualStudioExptTeam.vscodeintellicode",
"publisherDisplayName": "VisualStudioExptTeam"
},
"name": "vscodeintellicode",
"publisher": "VisualStudioExptTeam",
"version": "1.1.9"
},
{
"metadata": {
"id": "c8d95916-cf54-455f-b324-cbd887b7d3a8",
"publisherId": "sdras.vue-vscode-snippets",
"publisherDisplayName": "sdras"
},
"name": "vue-vscode-snippets",
"publisher": "sdras",
"version": "1.8.0"
},
{
"metadata": {
"id": "0cb81da2-1880-4755-9995-0ae9cc728e20",
"publisherId": "DotJoshJohnson.xml",
"publisherDisplayName": "DotJoshJohnson"
},
"name": "xml",
"publisher": "DotJoshJohnson",
"version": "2.5.0"
}
]
// 将键绑定放入此文件中以覆盖默认值
[{
"key": "ctrl+t",
"command": "editor.action.transpose"
},
{
"key": "cmd+y",
"command": "redo",
"when": "editorTextFocus && !editorReadonly"
},
// override extension command bind
{
"key": "ctrl+shift+m",
"command": "expand-selection-to-scope.expand"
},
{
"key": "alt+.",
"command": "auto-close-tag.closeTag"
},
{
"key": "shift+cmd+u",
"command": "sftp.upload.changedFiles"
},
{
"key": "alt+cmd+n",
"command": "bookmarks.jumpToNext",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+l",
"command": "-bookmarks.jumpToNext",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+m",
"command": "bookmarks.jumpToPrevious",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+j",
"command": "-bookmarks.jumpToPrevious",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+m",
"command": "bracket-pair-colorizer.expandBracketSelection"
},
{
"key": "ctrl+shift+m",
"command": "workbench.actions.view.problems"
},
{
"key": "shift+cmd+m",
"command": "-workbench.actions.view.problems"
},
{
"key": "alt+t",
"command": "list.toggleKeyboardNavigation"
},
{
"key": "cmd+space",
"command": "editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
{
"key": "ctrl+space",
"command": "-editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
}
]
// -
{
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"window.title": "${activeEditorMedium}${separator}${rootName}",
"window.zoomLevel": 0,
"editor.fontFamily": "Fira Code",
"editor.fontSize": 13,
"editor.fontLigatures": true,
"editor.rulers": [100],
"editor.minimap.maxColumn": 100,
"editor.wordWrap": "off",
"editor.tabSize": 2,
"editor.detectIndentation": false,
"editor.autoIndent": true,
"editor.renderIndentGuides": true,
"editor.selectionHighlight": false,
"editor.multiCursorModifier": "alt",
"editor.accessibilitySupport": "off",
"editor.snippetSuggestions": "inline",
"editor.scrollBeyondLastLine": true,
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"editor.tabCompletion": "on",
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": false
},
"editor.gotoLocation.multiple": "goto",
"editor.smoothScrolling": true,
"editor.cursorBlinking": "smooth",
"editor.suggestSelection": "first",
"editor.cursorSurroundingLines": 5,
"workbench.fontAliasing": "auto",
"workbench.editor.tabCloseButton": "off",
"workbench.editor.enablePreviewFromQuickOpen": false,
"workbench.activityBar.visible": true,
"workbench.startupEditor": "none",
"workbench.colorCustomizations": {
"activityBarBadge.background": "#64FFDA",
"list.activeSelectionForeground": "#64FFDA",
"list.inactiveSelectionForeground": "#64FFDA",
"list.highlightForeground": "#64FFDA",
"scrollbarSlider.activeBackground": "#64FFDA50",
"editorSuggestWidget.highlightForeground": "#64FFDA",
"textLink.foreground": "#64FFDA",
"progressBar.background": "#64FFDA",
"pickerGroup.foreground": "#64FFDA",
"tab.activeBorder": "#64FFDA",
"notificationLink.foreground": "#64FFDA",
"sideBar.border": "#4d4d4d"
},
"workbench.colorTheme": "Material Theme Darker",
"workbench.enableExperiments": false,
"workbench.list.keyboardNavigation": "filter",
"search.showLineNumbers": true,
"explorer.autoReveal": true,
"explorer.openEditors.visible": 0,
"breadcrumbs.enabled": true,
"breadcrumbs.filePath": "on",
"breadcrumbs.symbolSortOrder": "type",
"terminal.external.osxExec": "iTerm.app",
"debug.openDebug": "openOnDebugBreak",
"debug.console.fontFamily": "Fira Code",
"debug.console.fontSize": 13,
"extensions.showRecommendationsOnlyOnDemand": false,
"extensions.autoCheckUpdates": false,
"extensions.autoUpdate": false,
"files.insertFinalNewline": true,
"files.associations": {
"*.plist": "xml",
"*.style": "scss",
"*.wpy": "vue"
},
"merge-conflict.diffViewPosition": "Below",
"jake.autoDetect": "off",
"grunt.autoDetect": "off",
"gulp.autoDetect": "off",
"javascript.suggest.completeJSDocs": false,
"typescript.suggest.completeJSDocs": false,
"javascript.implicitProjectConfig.checkJs": false,
"javascript.preferences.quoteStyle": "single",
"typescript.preferences.quoteStyle": "single",
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.updateImportsOnFileMove.enabled": "always",
"css.validate": false,
"html.format.indentInnerHtml": true,
"html.format.endWithNewline": true,
"emmet.preferences": {
"bem.elementSeparator": "__",
"bem.modifierSeparator": "--",
"bem.shortElementPrefix": "-"
},
"emmet.includeLanguages": {
"vue-html": "html"
},
"markdown.extension.toc.githubCompatibility": true,
"php.suggest.basic": false,
"php.validate.run": "onType",
"php.executablePath": "/usr/bin/php",
"python.jediEnabled": false,
"python.pythonPath": "/usr/local/bin/python3",
"[python]": {
"editor.tabSize": 4
},
// code style
// "[javascript]": {
// "editor.codeActionsOnSave": {
// "source.organizeImports": true
// }
// },
// "[javascriptreact]": {
// "editor.codeActionsOnSave": {
// "source.organizeImports": true
// }
// },
// "[typescript]": {
// "editor.codeActionsOnSave": {
// "source.organizeImports": true
// }
// },
// "[typescriptreact]": {
// "editor.codeActionsOnSave": {
// "source.organizeImports": true
// }
// },
"html.format.enable": true,
"html.format.wrapAttributes": "aligned-multiple",
"json.format.enable": true,
"eslint.packageManager": "yarn",
"eslint.autoFixOnSave": false,
"eslint.alwaysShowStatus": true,
"eslint.validate": ["javascript", "javascriptreact", "vue", "typescript", "typescriptreact"],
"vetur.validation.style": false,
"vetur.validation.script": false,
"vetur.validation.template": false,
"vetur.experimental.templateInterpolationService": true,
"vetur.useWorkspaceDependencies": true,
"vetur.format.defaultFormatter.html": "prettier",
"vetur.format.defaultFormatterOptions": {
"prettier": {
"printWidth": 80,
"singleQuote": false,
"trailingComma": "es5",
"htmlWhitespaceSensitivity": "strict"
}
},
"bracket-pair-colorizer-2.showVerticalScopeLine": false,
"bracket-pair-colorizer-2.showHorizontalScopeLine": false,
"bracket-pair-colorizer-2.colorMode": "Independent",
"bracket-pair-colorizer-2.forceUniqueOpeningColor": false,
"bracket-pair-colorizer-2.showBracketsInGutter": true,
"sync.gist": "44cd72062ff5543cdb4d509dce3449eb",
"sync.autoUpload": false,
"sync.autoDownload": false,
"sync.forceDownload": false,
"sync.quietSync": false,
"sync.removeExtensions": false,
"materialTheme.cache.workbench.settings": {
"themeColours": "Darker High Contrast",
"accentPrevious": "Cyan",
"accent": "Bright Teal"
},
"sftp.debug": true,
"sftp.downloadWhenOpenInRemoteExplorer": false,
"remotefs.remote": {
"ly-dev": {
"scheme": "sftp",
"host": "192.168.99.222",
"username": "lixi",
"rootPath": "/home/lixi/projects/htdocs/lanyicj_platform",
"privateKeyPath": "/Users/mymomo/.ssh/id_rsa"
},
"vm-win-ftp": {
"scheme": "ftp",
"host": "192.168.180.236",
"username": "liximomo",
"password": "liximomo",
"rootPath": "/vendor"
},
"lanyi-server": {
"scheme": "sftp",
"host": "192.168.99.194",
"username": "lix",
"rootPath": "/home/lix/service",
"privateKeyPath": "/Users/mymomo/.ssh/id_rsa"
},
"PI": {
"scheme": "sftp",
"host": "192.168.1.9",
"username": "pi",
"rootPath": "/home/pi",
"privateKeyPath": "/Users/mymomo/.ssh/id_rsa"
},
"vultr": {
"scheme": "sftp",
"host": "45.76.101.247",
"rootPath": "/",
"username": "root"
}
},
"gitlens.menus": {
"editor": false,
"editorGroup": false,
"editorTab": {
"compare": false,
"history": false,
"remote": false
},
"explorer": {
"compare": true,
"history": true,
"remote": true
}
},
"gitlens.codeLens.enabled": false,
"gitlens.hovers.currentLine.over": "line",
"gitlens.currentLine.enabled": false,
"gitlens.blame.highlight.enabled": false,
"gitlens.blame.heatmap.enabled": false,
"gitlens.hovers.annotations.enabled": false,
"gitlens.hovers.currentLine.enabled": false,
"gitlens.settings.mode": "advanced",
"gitlens.views.repositories.files.layout": "tree",
"gitlens.views.repositories.location": "scm",
"gitlens.views.fileHistory.location": "scm",
"gitlens.views.lineHistory.location": "gitlens",
"gitlens.views.compare.location": "gitlens",
"gitlens.views.search.location": "gitlens",
"gitlens.mode.statusBar.enabled": false,
"markdown.extension.toc.updateOnSave": false,
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"python.formatting.provider": "black",
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"turboConsoleLog.logMessagePrefix": "🎗",
"turboConsoleLog.addSemicolonInTheEnd": true,
"turboConsoleLog.quote": "'",
"workbench.list.automaticKeyboardNavigation": false,
"go.useLanguageServer": true,
"go.formatTool": "goimports",
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
{
// 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:
"generate html5 template": {
"prefix": "html5",
"body": [
"<!DOCTYPE html>",
"<html>",
"<head>",
" <meta charset=\"UTF-8\">",
" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">",
" <title>title</title>",
" <style type=\"text/css\">",
" html { box-sizing: border-box; }",
"",
" *, ::before, ::after { box-sizing: inherit; }",
"",
" html, body {",
" height: 100%;",
" background: white;",
" max-width: 640px;",
" margin: 0 auto;",
" position: relative;",
" }",
" </style>",
"</head>",
"<body>",
" ${0:content}",
"</body>",
"</html>"
],
"description": "create a html5 mobile page template"
}
}
{
// 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:
"Print to html overlay": {
"prefix": "doclog",
"body": [
"const ${1:docLog} = function() {",
" if (!${1:docLog}._div) { ${1:docLog}.createDiv(); }",
" var logEntry = document.createElement('span');",
" for (var i=0; i < arguments.length; i++) {",
" logEntry.innerHTML += ${1:docLog}.toJson(arguments[i]);",
" }",
" logEntry.innerHTML += '<br />';",
" ${1:docLog}._div.appendChild(logEntry);",
"};",
"${1:docLog}.createDiv = function() {",
" ${1:docLog}._div = document.body.appendChild(document.createElement('div'));",
" var props = {",
" position:'absolute',",
" top:'0px',",
" right:'0px',",
" background:'#333',",
" padding: '10px',",
" opacity: 0.7,",
" color: 'white',",
" width: '70%',",
" 'max-width': '400px',",
" height: '300px',",
" overflow: 'auto',",
" fontFamily: 'courier new',",
" fontSize: '11px',",
" whiteSpace: 'pre'",
" };",
" for (var key in props) { ${1:docLog}._div.style[key] = props[key]; };",
"}",
"${1:docLog}.toJson = function(obj) {",
" return JSON.stringify(obj, null, 4);",
"}"
],
"description": "Log output to a html overylay"
},
"Test Dev Env": {
"prefix": "envd",
"body": ["process.env.NODE_ENV === 'development'"],
"description": "Test if we are is development enviroment"
},
"Send a ajax request": {
"prefix": "reqlifevc",
"body": [
"if (this._pending${CLIPBOARD/^([^(]+)\\(.+$/${1:/capitalize}/}) {",
" return;",
"}",
"",
"$1",
"",
"let resp;",
"try {",
" this._pending${CLIPBOARD/^([^(]+)\\(.+$/${1:/capitalize}/} = true;",
" resp = await $CLIPBOARD",
"} catch (error) {",
" Message.error(\"网络错误\");",
" return;",
"} finally {",
" this._pending${CLIPBOARD/^([^(]+)\\(.+$/${1:/capitalize}/} = false;",
"}",
"const data = resp.data;",
"// eslint-disable-next-line eqeqeq",
"if (data.ResultCode != \"200\") {",
" Message.error(data.InnerData || resp.statusText);",
" return;",
"}",
"const payload = data.InnerData;",
"",
"$0"
],
"description": "Send a ajax request"
}
}
{
// Place your snippets for vue 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:
"Vue basic comp": {
"prefix": "comp",
"body": [
"<template>",
" <div :class=\"\\$style.root\">${1:$TM_FILENAME_BASE}</div>",
"</template>",
"",
"<script>",
"export default {",
" name: \"${1:$TM_FILENAME_BASE}\",",
"};",
"</script>",
"",
"<style lang=\"scss\" module>",
"\\$page-width: 375;",
"@import \"~style/tool\";",
"",
".root {",
" // position: relative;",
"}",
"</style>",
""
],
"description": "Vue basic comp"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment