Skip to content

Instantly share code, notes, and snippets.

@mr-ubik
Last active October 21, 2021 17:36
Show Gist options
  • Save mr-ubik/6212549dd3837654f377f91b68728fc8 to your computer and use it in GitHub Desktop.
Save mr-ubik/6212549dd3837654f377f91b68728fc8 to your computer and use it in GitHub Desktop.
VS Code SyncSetting
{"lastUpload":"2021-10-21T17:36:23.350Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "d3836729-9cc1-42c1-b2af-d50071f57d29",
"publisherId": "formulahendry.auto-close-tag",
"publisherDisplayName": "formulahendry"
},
"name": "auto-close-tag",
"publisher": "formulahendry",
"version": "0.5.12"
},
{
"metadata": {
"id": "6e440e71-8ed9-4f25-bb78-4b13096b8a03",
"publisherId": "formulahendry.auto-rename-tag",
"publisherDisplayName": "formulahendry"
},
"name": "auto-rename-tag",
"publisher": "formulahendry",
"version": "0.1.9"
},
{
"metadata": {
"id": "f4d3cd15-6434-4267-a9d3-7e5f08c174da",
"publisherId": "truman.autocomplate-shell",
"publisherDisplayName": "truman"
},
"name": "autocomplate-shell",
"publisher": "truman",
"version": "0.1.1"
},
{
"metadata": {
"id": "73767f91-7dcb-43cb-90b3-596d073eea1f",
"publisherId": "jeff-hykin.better-cpp-syntax",
"publisherDisplayName": "jeff-hykin"
},
"name": "better-cpp-syntax",
"publisher": "jeff-hykin",
"version": "1.15.10"
},
{
"metadata": {
"id": "f27ad139-0ff0-4fea-a7c3-d1af80eed6ae",
"publisherId": "jeff-hykin.better-shellscript-syntax",
"publisherDisplayName": "jeff-hykin"
},
"name": "better-shellscript-syntax",
"publisher": "jeff-hykin",
"version": "1.1.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.2.1"
},
{
"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": "99b17261-8f6e-45f0-9ad5-a69c6f509a4f",
"publisherId": "ms-vscode.cpptools-themes",
"publisherDisplayName": "ms-vscode"
},
"name": "cpptools-themes",
"publisher": "ms-vscode",
"version": "1.0.0"
},
{
"metadata": {
"id": "411dfdf4-8a50-4801-9822-9cc4bd7d24ea",
"publisherId": "murhafshaker.deus-ex-theme",
"publisherDisplayName": "murhafshaker"
},
"name": "deus-ex-theme",
"publisher": "murhafshaker",
"version": "1.3.0"
},
{
"metadata": {
"id": "081cd2e9-bc51-4ea3-977e-544bed2e33a8",
"publisherId": "bierner.emojisense",
"publisherDisplayName": "bierner"
},
"name": "emojisense",
"publisher": "bierner",
"version": "0.9.0"
},
{
"metadata": {
"id": "f92cbdc4-f49a-488e-800c-d2e9b42e0931",
"publisherId": "mark-hansen.hledger-vscode",
"publisherDisplayName": "mark-hansen"
},
"name": "hledger-vscode",
"publisher": "mark-hansen",
"version": "0.0.7"
},
{
"metadata": {
"id": "fcf0848c-96b3-487a-a655-01aed955a594",
"publisherId": "jolaleye.horizon-theme-vscode",
"publisherDisplayName": "jolaleye"
},
"name": "horizon-theme-vscode",
"publisher": "jolaleye",
"version": "2.0.2"
},
{
"metadata": {
"id": "659a35e1-7b7f-4b47-822d-0d96fd6e13e7",
"publisherId": "antfu.icons-carbon",
"publisherDisplayName": "antfu"
},
"name": "icons-carbon",
"publisher": "antfu",
"version": "0.2.4"
},
{
"metadata": {
"id": "c941a679-d500-46a8-b2a9-208063125901",
"publisherId": "wholroyd.jinja",
"publisherDisplayName": "wholroyd"
},
"name": "jinja",
"publisher": "wholroyd",
"version": "0.0.8"
},
{
"metadata": {
"id": "8b477a76-974c-403d-a454-58028c1709d1",
"publisherId": "samuelcolvin.jinjahtml",
"publisherDisplayName": "samuelcolvin"
},
"name": "jinjahtml",
"publisher": "samuelcolvin",
"version": "0.16.0"
},
{
"metadata": {
"id": "03ded8b3-a653-43fa-934d-dc71f52321a2",
"publisherId": "mr-ubik.n30-baroque",
"publisherDisplayName": "mr-ubik"
},
"name": "n30-baroque",
"publisher": "mr-ubik",
"version": "0.6.0"
},
{
"metadata": {
"id": "1b747f06-3789-4ebd-ac99-f1fe430c3347",
"publisherId": "alefragnani.project-manager",
"publisherDisplayName": "alefragnani"
},
"name": "project-manager",
"publisher": "alefragnani",
"version": "12.4.0"
},
{
"metadata": {
"id": "93ce222b-5f6f-49b7-9ab1-a0463c6238df",
"publisherId": "ms-vscode-remote.remote-containers",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "remote-containers",
"publisher": "ms-vscode-remote",
"version": "0.187.1"
},
{
"metadata": {
"id": "607fd052-be03-4363-b657-2bd62b83d28a",
"publisherId": "ms-vscode-remote.remote-ssh",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "remote-ssh",
"publisher": "ms-vscode-remote",
"version": "0.65.8"
},
{
"metadata": {
"id": "bfeaf631-bcff-4908-93ed-fda4ef9a0c5c",
"publisherId": "ms-vscode-remote.remote-ssh-edit",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "remote-ssh-edit",
"publisher": "ms-vscode-remote",
"version": "0.65.8"
},
{
"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.58.2"
},
{
"metadata": {
"id": "d96e79c6-8b25-4be3-8545-0e0ecefcae03",
"publisherId": "vscodevim.vim",
"publisherDisplayName": "vscodevim"
},
"name": "vim",
"publisher": "vscodevim",
"version": "1.21.10"
},
{
"metadata": {
"id": "23d72dfc-8dd1-4e30-926e-8783b4378f13",
"publisherId": "ms-vscode-remote.vscode-remote-extensionpack",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "vscode-remote-extensionpack",
"publisher": "ms-vscode-remote",
"version": "0.21.0"
}
]
{"attempts":1,"previous":{"extension":"1.26.0","vscode":"1.48.0-insider"},"current":{"extension":"1.30.0","vscode":"1.50.0-insider"},"apiAvailable":true,"queue":[]}
["/usr/share/jupyter/kernels/python3/kernel.json","/home/ubik/.local/share/jupyter/kernels/costvb/kernel.json","/home/ubik/.local/share/jupyter/kernels/pymarks/kernel.json","/home/ubik/.local/share/jupyter/kernels/python38364bitf91e0109c0364aa49ee20a54b924450e/kernel.json"]
{
"remoteListeningOn": {
"port": 39881
},
"osReleaseId": "debian",
"arch": "x86_64",
"webUiAccessToken": "",
"sshAuthSock": "",
"display": "",
"tmpDir": "/run/user/1002",
"platform": "linux",
"connectionToken": "127af0e5-6c68-44fd-980d-321588a54c9e",
"pid": 8339,
"ipcHandlePath": "/run/user/1000/vscode-ssh-askpass-196d694ecfb8fcb4c870b2ce314e9676a98efca4.sock",
"socksPort": 36849,
"startupTime": 1634836314795
}
// Empty
[
// {
// "key": "ctrl+r",
// "command": "workbench.action.reloadWindow"
// },
{
"key": "ctrl+i",
"command": "editor.action.inspectTMScopes"
},
{
"key": "ctrl+enter",
"command": "code-runner.run"
},
{
"key": "ctrl+alt+n",
"command": "-code-runner.run"
}
]
{
// Python
"python.autoComplete.addBrackets": true,
"python.linting.mypyEnabled": true,
"python.linting.mypyPath": "mypy",
"python.formatting.provider": "black",
"python.formatting.yapfArgs": [
"--style",
"{based_on_style: google, indent_width: 4}"
],
// "python.sortImports.path": "isort",
"python.linting.flake8Args": ["--max-complexity=5", "--max-line-length=99"],
// Doc8
"restructuredtext.linter.extraArgs": ["--max-line-length 99"],
// Markdown
"[markdown]": {
"editor.wordWrap": "on",
"editor.quickSuggestions": false,
"editor.insertSpaces": true,
"editor.tabSize": 4
},
// Vim
"vim.startInInsertMode": true,
"vim.statusBarColorControl": true,
"vim.enableNeovim": true,
// Editor
"editor.fontSize": 16,
"editor.fontFamily": "Hack Nerd Font Mono",
"editor.renderWhitespace": "boundary",
"editor.renderIndentGuides": false,
"editor.rulers": [99],
"editor.snippetSuggestions": "top",
// Files
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"workbench.activityBar.visible": true,
"workbench.statusBar.visible": true,
// Keyboard
"keyboard.dispatch": "keyCode",
// Git
"git.autofetch": true,
// Gitlens
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false,
"suppressResultsExplorerNotice": false,
"suppressShowKeyBindingsNotice": true,
"suppressUpdateNotice": false,
"suppressWelcomeNotice": true
},
"sync.autoDownload": false,
"sync.autoUpload": false,
"sync.forceDownload": true,
// "sync.anonymousGist": false,
"sync.quietSync": false,
// Cspell
"cSpell.userWords": [
"Fnctionalities",
"IERC",
"IMVD",
"Rebalance",
"SD's",
"SPDX",
"Styleguide",
"Uncomment",
"absify",
"arange",
"arte",
"asarray",
"astype",
"bstr",
"buidl",
"buidl buidlers dfohub com",
"buidlers",
"bytecode",
"cli",
"cmap",
"codehash",
"collateralized",
"com",
"conformify",
"contours",
"conv",
"convolutional",
"coordinates",
"cvdf",
"d",
"dafaq",
"dataset",
"datasets",
"datefmt",
"dcgan",
"deconv",
"deconvolution",
"demoes",
"destructure",
"desync",
"devdoc",
"dfohub",
"dictify",
"docgen",
"docstring",
"docstrings",
"dotfiles",
"dsize",
"dtype",
"endmacro",
"ethart",
"ethbolo",
"external",
"favicon",
"fillna",
"flask",
"folder",
"frecords",
"functools",
"gans",
"gcloud",
"gcsfilesystem",
"gfile",
"hackerman",
"hashcode",
"hierarchy",
"ided",
"iimages",
"images",
"imagify",
"img",
"imgs",
"imread",
"imsave",
"imshow",
"imwrite",
"inheritdoc",
"isin",
"iterrows",
"itertools",
"jinja",
"jsonl",
"jsonlines",
"jsons",
"jupyter",
"keccak",
"keras",
"keycaps",
"labelify",
"logitech",
"mdesimoni",
"meseeks",
"micheledesimoni",
"microservice",
"microservices",
"mintable",
"mintables",
"mkdocs",
"mload",
"mnist",
"mypy",
"ndarray",
"newform",
"noqa",
"normalizaition",
"numpy",
"oauth",
"optimizers",
"parametrize",
"path",
"paths",
"pinterest",
"pred",
"proper",
"pyannotate",
"pyfile",
"pylint",
"pyplot",
"pytest",
"rebalancebycredit",
"rebalancing",
"rect",
"relu",
"rescale",
"rescaled",
"restructuredtext",
"retr",
"retrowave",
"returndata",
"retval",
"rrggbb",
"s",
"scipy",
"sd",
"sd’s",
"serverless",
"sess",
"setup",
"sharded",
"shutil",
"splitted",
"stablecoinauthorized",
"stablecoins",
"strided",
"struct",
"syntax",
"synthwave",
"t",
"tachyons",
"tags",
"tanh",
"tensorflow",
"test",
"tfgan",
"tfrec",
"tfrecords",
"tldr",
"tolist",
"toml",
"u",
"u sd",
"ubik",
"ubyte",
"uint",
"unflatten",
"unflattening",
"unifi",
"vectorize",
"vectorized",
"venv",
"virtualenv",
"wasserstein",
"workflow",
"wtforms",
"xfail",
"xrange",
"zen",
"zuru"
],
"cSpell.enabledLanguageIds": [
"c",
"cpp",
"csharp",
"go",
"handlebars",
"javascript",
"javascriptreact",
"json",
"latex",
"markdown",
"php",
"plaintext",
"python",
"restructuredtext",
"text",
"typescript",
"typescriptreact",
"yml"
],
// Project Manager
"projectManager.groupList": true,
"projectManager.git.baseFolders": ["$home/Documents/github", "$home/Documents/work"],
"projectManager.vscode.baseFolders": ["$home/.vscode/"],
"projectManager.vscode.maxDepthRecursion": 4,
// Zen Mode
"zenMode.hideTabs": false,
"window.zoomLevel": -1,
"liveServer.settings.donotVerifyTags": true,
"liveServer.settings.port": 5600,
"files.autoSave": "onFocusChange",
"extensions.ignoreRecommendations": false,
"window.menuBarVisibility": "toggle",
"gitlens.keymap": "alternate",
"sync.removeExtensions": true,
"sync.syncExtensions": true,
"editor.formatOnPaste": false,
"explorer.confirmDragAndDrop": false,
"yaml.format.enable": false,
"prettier.disableLanguages": ["vue", "markdown"],
"python.linting.flake8CategorySeverity.F": "Warning",
// "workbench.colorCustomizations": {
// "statusBar.background": "#FF00A6",
// "statusBar.noFolderBackground": "#FF00A6",
// "statusBar.debuggingBackground": "#FF00A6"
// },
"vim.useSystemClipboard": true,
"editor.cursorStyle": "line",
"vim.autoindent": true,
"vim.easymotion": true,
"vim.visualstar": true,
"terminal.external.linuxExec": "konsole",
"python.autoComplete.showAdvancedMembers": true,
"go.formatTool": "goreturns",
"editor.wordWrapColumn": 120,
"editor.formatOnType": true,
"workbench.panel.defaultLocation": "right",
"files.associations": {
".pylintrc": "ini",
"*.lr": "markdown",
"*.rst": "restructuredtext"
},
"markdown.extension.toc.levels": "2..6",
"breadcrumbs.enabled": true,
"markdown.extension.italic.indicator": "_",
"markdown.extension.tableFormatter.normalizeIndentation": true,
"markdown.extension.toc.githubCompatibility": true,
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [" "],
"after": ["<leader>", "<leader>", "<leader>", "b", "d", "w"]
}
],
"vim.easymotionKeys": "neoithsa",
"vim.easymotionMarkerFontFamily": "Hack",
"vim.easymotionMarkerFontSize": "18",
"vim.easymotionMarkerHeight": 18,
"editor.lineNumbers": "relative",
// "[python]": {
// "editor.codeActionsOnSave": {
// "source.organizeImports": true
// }
// },
"python.linting.pylintCategorySeverity.refactor": "Information",
"python.linting.pydocstyleEnabled": true,
"git.enableSmartCommit": true,
"gitlens.views.repositories.files.layout": "tree",
"gitlens.views.fileHistory.enabled": true,
"gitlens.views.lineHistory.enabled": true,
"python.linting.pydocstylePath": "/usr/bin/pydocstyle",
"python.linting.pylintPath": "/usr/bin/pylint",
"python.linting.flake8Path": "/usr/bin/flake8",
"python.formatting.blackPath": "/usr/bin/black",
"python.venvPath": "~/.python_envs",
"explorer.confirmDelete": false,
"workbench.colorTheme": "N30 Baroque",
"workbench.colorCustomizations": {
"statusBar.background": "#5f0000",
"statusBar.noFolderBackground": "#5f0000",
"statusBar.debuggingBackground": "#5f0000"
},
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"[jsonc]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"typescript.suggest.completeFunctionCalls": true,
"typescript.implementationsCodeLens.enabled": true,
"typescript.referencesCodeLens.enabled": true,
"editor.formatOnSave": true,
"prettier.tabWidth": 4,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"prettier.trailingComma": "all",
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"prettier.printWidth": 90,
"prettier.semi": false,
"gitlens.mode.active": "zen",
"emmet.excludeLanguages": [],
"emmet.includeLanguages": {
"markdown": "html"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"sync.forceUpload": true,
"eslint.alwaysShowStatus": true,
"eslint.packageManager": "yarn",
"vetur.format.defaultFormatter.html": "prettier",
"vetur.format.defaultFormatter.js": "prettier-eslint",
"vetur.format.options.tabSize": 4,
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"todo-tree.highlights.customHighlight": {
"DOCUMENT": {
"icon": "book",
"foreground": "green",
"iconColour": "green"
},
"FUCKME": {
"icon": "alert",
"foreground": "red",
"iconColour": "red"
},
"HACK": {
"icon": "eye",
"foreground": "pink",
"iconColour": "pink"
},
"REFACTOR": {
"icon": "beaker",
"foreground": "cyan",
"iconColour": "cyan"
},
"NOTE": {
"icon": "info"
}
},
"todo-tree.highlights.defaultHighlight": {
"icon": "eye",
"foreground": "gold",
"iconColour": "gold",
"gutterIcon": true,
"type": "text-and-comment",
"textDecoration": "underline"
},
"todo-tree.tree.labelFormat": "${tag}: ${after}",
"todo-tree.tree.showCountsInTree": true,
"todo-tree.general.tags": [
"TODO",
"FIXME",
"DOCUMENT",
"FUCKME",
"HACK",
"REFACTOR",
"NOTE"
],
"C_Cpp.enhancedColorization": "Enabled",
"C_Cpp.clang_format_fallbackStyle": "Chromium",
"C_Cpp.default.cppStandard": "c++17",
"C_Cpp.default.intelliSenseMode": "gcc-x64",
"C_Cpp.default.includePath": ["/usr/include/**", "${workspaceFolder}/**"],
"[cpp]": {
"editor.defaultFormatter": "xaver.clang-format"
},
"python.jediEnabled": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"pythonTestExplorer.testFramework": "pytest",
"vsintellicode.features.python.deepLearning": "enabled",
"python.testing.pytestEnabled": true,
"python.analysis.memory.keepLibraryLocalVariables": true,
"python.analysis.memory.keepLibraryAst": true,
"python.linting.pylintEnabled": false,
"vim.neovimPath": "nvim",
"python.languageServer": "Microsoft",
"python.dataScience.alwaysTrustNotebooks": true,
"cmake.configureOnOpen": true,
"editor.fontLigatures": true,
"cSpell.enableFiletypes": [
"solidity"
],
"tabnine.experimentalAutoImports": true,
"tabnine.receiveBetaChannelUpdates": true,
"sync.gist": "6212549dd3837654f377f91b68728fc8",
"workbench.editorAssociations": {
"*.ipynb": "jupyter-notebook"
},
"notebook.cellToolbarLocation": {
"default": "right",
"jupyter-notebook": "left"
}
}
{
/*
// 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:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
*/
// Jinja
"Jinja Inherit Template": {
"prefix": "extends",
"body": "{% extends \"$0\" %}",
"description": "DOCUMENT"
},
"Jinja New Block": {
"prefix": "block",
"body": "{% block ${1:} %}\n\t$0\n{% endblock $1 %}",
"description": "DOCUMENT"
},
"Jinja Logic": {
"prefix": "var",
"body": "{{ $0 }}",
"description": "DOCUMENT"
},
"Jinja for Loop": {
"prefix": "for",
"body": "{% for ${1:} in ${2:} %}\n\t${0}\n{% endfor %}",
"description": "Jinja2 for Loop"
},
"Jinja if Statement": {
"prefix": "if",
"body": "{% if ${1:} %}\n\t${0}\n{% endif %}",
"description": "Jinja2 if Statement"
},
"Jinja Macro": {
"prefix": "macro",
"body": "{% macro ${1:}(${2:}) %}\n\t${0}\n{% endmacro %}",
"description": "Jinja2 if Statement"
},
}
{
/*
// Place your snippets for Jinja 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"
}
*/
// Jinja
"Extends": {
"prefix": "extends",
"body": "{% extends \"$0\" %}",
"description": "DOCUMENT"
},
"New Block": {
"prefix": "block",
"body": "{% block ${1:} %}\n\t$0\n{% endblock $1 %}",
"description": "DOCUMENT"
},
"VAR": {
"prefix": "var",
"body": "{{ $0 }}",
"description": "DOCUMENT"
},
}
{
/*
// Place your snippets for JSON 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"
}
*/
"New Snippet": {
"prefix": "newsnippet",
"body": [
"\"${1:New Snippet}\": {",
"\t\"prefix\": \"${2:snippet}\",",
"\t\"body\": \"$0\",",
"\t\"description\": \"DOCUMENT\"",
"}",
],
"description": "Generate a snippet."
},
}
{
/*
// Place your snippets for JSON with Comments 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 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"
// }
"sectionTitle": {
"prefix": "sectionTitle",
"body": "<!-- sectionTitle: ${title} -->"
},
"New Pelican Post": {
"prefix": "newpost",
"body": [
"Title: $1",
"Category: $2",
"Subcategory: $3",
"Tag: $4",
"Slug: $5",
"Summary: $6",
"Status: unpublished"
],
"description": "Pelican Post Template"
}
}
{
/*
// Place your snippets for Python 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"
}
*/
"Import Numpy": {
"prefix": "np",
"body": "import numpy as np\n$0",
"description": ""
},
"Import TensorFlow": {
"prefix": "tf",
"body": "import tensorflow as tf\n$0",
"description": ""
},
"Docstring": {
"prefix": "doc",
"body": [
"\"\"\"DOCUMENT Docstring.\n",
"Args:",
"\t${1:params}.\n",
"Returns:",
"\t${2:Describe the type and semantics of the return value}.",
"\"\"\""
]
},
"FormSubmit": {
"prefix": "submit",
"body": "submit = SubmitField(\"${1:Submit}\")$0"
},
"New SubClass": {
"prefix": "subclass",
"body": [
"class ${1:ClassName}(${2:object}):",
"\t\"\"\"${3:DOCUMENT docstring for $1}\"\"\"\n",
"\tdef __init__(self, ${4:arg}):",
"\t\t${5:super($1, self).__init__()}",
"\t\tself.arg = arg\n\t\t$0"
]
},
"New Class": {
"prefix": "class",
"body": [
"class ${1:ClassName}(${2:object}):",
"\t\"\"\"${3:DOCUMENT Docstring for $1}\"\"\"\n",
"\t${0}",
"\n\tpass"
]
},
"New Function": {
"prefix": "def",
"body": [
"def ${1:}(${2:argument}):",
"\t\"\"\"${3:DOCUMENT Docstring for} ${1}.",
"\tArgs:",
"\t\t${2}:${4}.\n",
"\tReturns:",
"\t\t${5:Describe the type and semantics of the return value}.",
"\t\"\"\"",
"\t$0",
"\tpass"
]
},
"New WTF-Flask-Form": {
"prefix": "newform",
"body": [
"class ${1:name}Form(FlaskForm):",
"\t\"\"\"${3:DOCUMENT Docstring for ${1}Form}\"\"\"\n",
"\t$0",
"\tsubmit = SubmitField('Submit')"
],
"description": "Create a new Flask-WTF form."
},
"Commented Visual Separator": {
"prefix": "section",
"body": "# ########## SECTION: ${0} ##########################################\n",
"description": "Insert a visual separator for readability"
},
"Map": {
"prefix": "map",
"body": "map(lambda ${1:parameter_list}: ${2:expression}, ${3:iterables})",
"description": "Map a function to a set of iterables."
},
"Get Values from Key ": {
"prefix": "get",
"body": "get(\"${0}\")",
"description": "Call the .get() method."
},
"Python 2 Type Annotation": {
"prefix": "2type",
"body": " # type: (${1:}) -> ${2:}${0}",
"description": "Add a Python 2.7 Type Annotation"
},
"Sphinx Domain": {
"prefix": "::",
"body": ":py:${1:class}:`${2:target}`",
"description": "Sphinx domain reference."
}
}
{
// Place your snippets for restructuredtext 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"
// }
"Pelican Post Meta Info": {
"prefix": "pelican-post-info",
"body": [
":title: ${1:title}",
":category: ${2:category}",
":subcategory: ${3:subcategory}",
":tags: ${4:tags}",
":slug: ${5:slug}",
":summary: ${6:summary}",
":status: ${7:unpublished}",
":date: ${8:$CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE}"
],
"description": "Post Meta Info"
},
"Link Inline": {
"prefix": "ilink",
"body": "`${1:text} <${2:$CLIPBOARD}>`_",
"description": "Inline Hyperlink"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment