Skip to content

Instantly share code, notes, and snippets.

@MapleCCC
Last active January 13, 2020 12:57
Show Gist options
  • Save MapleCCC/a408d2dd820551f46665db7904592140 to your computer and use it in GitHub Desktop.
Save MapleCCC/a408d2dd820551f46665db7904592140 to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
{
"workbench.colorCustomizations": {
"activityBar.background": "#cc92c4",
"activityBar.activeBorder": "#e7ebd4",
"activityBar.foreground": "#15202b",
"activityBar.inactiveForeground": "#15202b99",
"activityBarBadge.background": "#e7ebd4",
"activityBarBadge.foreground": "#15202b",
"titleBar.activeBackground": "#bc6fb1",
"titleBar.inactiveBackground": "#bc6fb199",
"titleBar.activeForeground": "#15202b",
"titleBar.inactiveForeground": "#15202b99",
"statusBar.background": "#bc6fb1",
"statusBarItem.hoverBackground": "#a94f9c",
"statusBar.foreground": "#15202b",
"panel.border": "#cc92c4",
"sideBar.border": "#cc92c4",
"editorGroup.border": "#cc92c4",
"tab.activeBorder": "#cc92c4"
},
"peacock.color": "#bc6fb1"
}
{"lastUpload":"2020-01-13T12:57:11.020Z","extensionVersion":"v3.4.3"}
[
{
"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.29"
},
{
"metadata": {
"id": "f3b153f9-13ba-4992-9f90-1779d968df49",
"publisherId": "danielpinto8zz6.c-cpp-compile-run",
"publisherDisplayName": "danielpinto8zz6"
},
"name": "c-cpp-compile-run",
"publisher": "danielpinto8zz6",
"version": "1.0.5"
},
{
"metadata": {
"id": "a6a0c5b2-d078-4bf5-a9ee-4e37054414b3",
"publisherId": "formulahendry.code-runner",
"publisherDisplayName": "formulahendry"
},
"name": "code-runner",
"publisher": "formulahendry",
"version": "0.9.15"
},
{
"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": "690b692e-e8a9-493f-b802-8089d50ac1b2",
"publisherId": "ms-vscode.cpptools",
"publisherDisplayName": "ms-vscode"
},
"name": "cpptools",
"publisher": "ms-vscode",
"version": "0.26.2"
},
{
"metadata": {
"id": "2145d811-2c3c-4b14-bd14-e32ff10bfa58",
"publisherId": "tcwalther.cython",
"publisherDisplayName": "tcwalther"
},
"name": "cython",
"publisher": "tcwalther",
"version": "0.1.0"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "10.2.0"
},
{
"metadata": {
"id": "5db78037-f674-459f-a236-db622c427c5b",
"publisherId": "PKief.material-icon-theme",
"publisherDisplayName": "PKief"
},
"name": "material-icon-theme",
"publisher": "PKief",
"version": "3.9.2"
},
{
"metadata": {
"id": "26a529c9-2654-4b95-a63f-02f6a52429e6",
"publisherId": "zhuangtongfa.material-theme",
"publisherDisplayName": "zhuangtongfa"
},
"name": "material-theme",
"publisher": "zhuangtongfa",
"version": "3.2.1"
},
{
"metadata": {
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
"publisherId": "esbenp.prettier-vscode",
"publisherDisplayName": "esbenp"
},
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "3.18.0"
},
{
"metadata": {
"id": "593fe6a5-513e-4cb3-abfb-5b9f5fe39802",
"publisherId": "ms-pyright.pyright",
"publisherDisplayName": "ms-pyright"
},
"name": "pyright",
"publisher": "ms-pyright",
"version": "1.1.19"
},
{
"metadata": {
"id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5",
"publisherId": "ms-python.python",
"publisherDisplayName": "ms-python"
},
"name": "python",
"publisher": "ms-python",
"version": "2020.1.57204"
},
{
"metadata": {
"id": "75da638c-c45a-44ea-aa3b-8570a3559810",
"publisherId": "TabNine.tabnine-vscode",
"publisherDisplayName": "TabNine"
},
"name": "tabnine-vscode",
"publisher": "TabNine",
"version": "2.1.22"
},
{
"metadata": {
"id": "d96e79c6-8b25-4be3-8545-0e0ecefcae03",
"publisherId": "vscodevim.vim",
"publisherDisplayName": "vscodevim"
},
"name": "vim",
"publisher": "vscodevim",
"version": "1.12.4"
},
{
"metadata": {
"id": "cba79045-6f59-4f86-8c80-af78d566d8cf",
"publisherId": "deerawan.vscode-dash",
"publisherDisplayName": "deerawan"
},
"name": "vscode-dash",
"publisher": "deerawan",
"version": "2.3.0"
},
{
"metadata": {
"id": "e4ee7751-6514-4731-9cdb-7580ffa9e70b",
"publisherId": "MS-CEINTL.vscode-language-pack-zh-hans",
"publisherDisplayName": "MS-CEINTL"
},
"name": "vscode-language-pack-zh-hans",
"publisher": "MS-CEINTL",
"version": "1.41.2"
},
{
"metadata": {
"id": "66682185-9f80-4b70-8b8c-9e492935c105",
"publisherId": "shengchen.vscode-leetcode",
"publisherDisplayName": "shengchen"
},
"name": "vscode-leetcode",
"publisher": "shengchen",
"version": "0.16.0"
},
{
"metadata": {
"id": "5a7017bf-c571-4d77-b902-6e56b16f539a",
"publisherId": "johnpapa.vscode-peacock",
"publisherDisplayName": "johnpapa"
},
"name": "vscode-peacock",
"publisher": "johnpapa",
"version": "3.2.0"
}
]
// 将按键绑定放在此文件中以覆盖默认值auto[]
[
{
"key": "ctrl+alt+h",
"command": "workbench.action.toggleMaximizedPanel"
},
{
"key": "ctrl+oem_7",
"command": "leetcode.testSolution"
},
{
"key": "ctrl+alt+oem_period",
"command": "leetcode.submitSolution"
},
{
"key": "ctrl+shift+x",
"command": "workbench.action.terminal.kill",
"when": "terminalFocus"
}
]
{
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.wordWrap": "on"
},
"[python]": {
"editor.codeActionsOnSave": {
// see: https://github.com/microsoft/vscode-python/issues/8245
"source.organizeImports": false
}
},
"ahk.executableFullPath": "D:\\Program Files\\AutoHotKey\\AutoHotkey.exe",
"breadcrumbs.enabled": true,
"C_Cpp.clang_format_sortIncludes": true,
"C_Cpp.intelliSenseEngineFallback": "Enabled",
"code-runner.enableAppInsights": false,
"code-runner.saveFileBeforeRun": true,
"editor.acceptSuggestionOnEnter": "off",
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"editor.cursorBlinking": "smooth",
"editor.cursorSmoothCaretAnimation": true,
"editor.fontFamily": "'Fira Code', 'Operator Mono', 'SF Mono', 'Inconsolata', '思源黑体 CN light', Consolas, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.letterSpacing": 0.2,
"editor.lineHeight": 22,
"editor.lineNumbers": "relative",
"editor.minimap.enabled": false,
"editor.mouseWheelZoom": true,
"editor.snippetSuggestions": "top",
"editor.tabCompletion": "on",
"editor.wrappingIndent": "indent",
"explorer.sortOrder": "type",
"files.autoGuessEncoding": true,
"files.exclude": {
"**/__pycache__": true,
"**/.history": true,
"**/.hypothesis": true,
"**/.pytest_cache": true,
"**/.tox": true,
"**/.venv": true,
"**/.vscode": true
},
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"git.enableCommitSigning": true,
"leetcode.defaultLanguage": "python3",
"leetcode.enableSideMode": false,
"leetcode.hint.commandShortcut": false,
"leetcode.hint.commentDescription": false,
"leetcode.hint.configWebviewMarkdown": false,
"leetcode.hint.setDefaultLanguage": false,
"leetcode.showCommentDescription": true,
"leetcode.showLocked": true,
"markdown-preview-enhanced.frontMatterRenderingOption": "table",
"peacock.affectAccentBorders": true,
"peacock.affectTabActiveBorder": true,
"peacock.favoriteColors": [
{
"name": "Angular Red",
"value": "#b52e31"
},
{
"name": "Auth0 Orange",
"value": "#eb5424"
},
{
"name": "Azure Blue",
"value": "#007fff"
},
{
"name": "C# Purple",
"value": "#68217A"
},
{
"name": "Gatsby Purple",
"value": "#639"
},
{
"name": "Go Cyan",
"value": "#5dc9e2"
},
{
"name": "Java Blue-Gray",
"value": "#557c9b"
},
{
"name": "JavaScript Yellow",
"value": "#f9e64f"
},
{
"name": "Mandalorian Blue",
"value": "#1857a4"
},
{
"name": "Node Green",
"value": "#215732"
},
{
"name": "React Blue",
"value": "#00b3e6"
},
{
"name": "Something Different",
"value": "#832561"
},
{
"name": "Vue Green",
"value": "#42b883"
}
],
"peacock.surpriseMeOnStartup": true,
"python.autoComplete.addBrackets": true,
"python.condaPath": "\"D:\\Users\\dell\\Anaconda3\\Scripts\\conda.exe\"",
"python.diagnostics.sourceMapsEnabled": false,
"python.experiments.enabled": false,
"python.formatting.autopep8Args": [
"--aggressive",
"--aggressive",
"--ignore",
"E722"
],
"python.pythonPath": "D:\\Program Files\\Python36\\python.exe",
"python.sortImports.path": "isort",
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": true,
"python.workspaceSymbols.ctagsPath": "D:\\Apps\\ctags-2019-05-18_509fa4ff-x64\\ctags.exe",
"python.workspaceSymbols.exclusionPatterns": [
"**/site-packages/**",
".history/**"
],
"rust-client.updateOnStartup": true,
"search.useGlobalIgnoreFiles": true,
"sync.gist": "a408d2dd820551f46665db7904592140",
"sync.removeExtensions": false,
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.letterSpacing": 0.2,
"terminal.integrated.scrollback": 5000,
"terminal.integrated.shell.windows": "D:\\Program Files\\Git\\bin\\bash.exe",
"vim.camelCaseMotion.enable": true,
"vim.easymotion": true,
"vim.highlightedyank.enable": true,
"vim.neovimPath": "D:\\Apps\\Neovim\\bin\\nvim.exe",
"vim.sneak": true,
"vim.sneakReplacesF": true,
"vim.sneakUseIgnorecaseAndSmartcase": true,
"vim.useSystemClipboard": true,
"window.menuBarVisibility": "toggle",
"window.zoomLevel": 1,
"workbench.colorCustomizations": {
"statusBar.background": "#5f00af",
"statusBar.debuggingBackground": "#5f00af",
"statusBar.noFolderBackground": "#5f00af"
},
"workbench.colorTheme": "One Dark Pro",
"workbench.editor.highlightModifiedTabs": true,
"workbench.editor.tabSizing": "shrink",
"workbench.iconTheme": "material-icon-theme",
"python.analysis.cacheFolderPath": ".py_analysis_cache",
"oneDarkPro.vivid": true,
"oneDarkPro.bold": true,
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"pyright.useLibraryCodeForTypes": true,
"python.linting.mypyArgs": [
"--ignore-missing-imports",
"--show-column-numbers"
],
"python.formatting.provider": "black",
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"files.autoSave": "afterDelay",
"leetcode.workspaceFolder": "d:\\Users\\dell\\Documents\\Git-Repository\\@Work-In-Progress\\leetcode-oj",
"C_Cpp.default.includePath": [
"D:\\Program Files\\Python36\\include",
// "C:\\Program Files (x86)\\Windows Kits\\10\\Include",
// "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.17134.0\\um",
// "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.17134.0\\shared",
// "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.17134.0\\winrt",
// "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.17134.0\\ucrt",
// "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.17134.0\\cppwinrt"
],
"C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: Google, IndentWidth: 4, AlwaysBreakAfterReturnType: AllDefinitions }",
"vim.handleKeys": {
"<C-w>": false,
"<C-b>": false,
"<C-r>": false
},
"vim.whichwrap": "f",
"[plaintext]": {
"editor.wordWrap": "on"
}
}
{
// Place your snippets for c 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"
// }
"For loop in number": {
"prefix": "loo",
"body": [
"for (int i = 0; i < ${1:range}; i++) {",
"\t${2:loop body code}",
"}"
],
"description": "For loop in certain number"
},
"Malloc": {
"prefix": "mal",
"body": [
"$1* $2 = ($1*)malloc(sizeof(*$2));"
],
"description": "Malloc snippet"
},
"Malloc for array": {
"prefix": "mala",
"body": [
"$1* $2 = ($1*)malloc($3 * sizeof(*$2));"
],
"description": "Malloc snippet for array allocation"
},
"Print to console": {
"prefix": "pri",
"body": [
"printf(\"%d\\n\", $1);"
],
"description": "Log output to console"
},
"Log error to stderr": {
"prefix": "pre",
"body": [
"fprintf(stderr, \"[ERROR]: $1\\n\");"
],
},
"Check and log error to stderr": {
"prefix": "ife",
"body": [
"if ($1) {",
"\tfprintf(stderr, \"[ERROR]: $2\\n\");",
"\texit(EXIT_FAILURE);",
"}"
],
"description": "Check and log error to stderr"
},
"P1": {
"prefix": "p1",
"body": [
"printf(\"P1\\n\");"
]
},
"P2": {
"prefix": "p2",
"body": [
"printf(\"P2\\n\");"
]
},
"P3": {
"prefix": "p3",
"body": [
"printf(\"P3\\n\");"
]
},
"P4": {
"prefix": "p4",
"body": [
"printf(\"P4\\n\");"
]
},
"P5": {
"prefix": "p5",
"body": [
"printf(\"P5\\n\");"
]
},
"P6": {
"prefix": "p6",
"body": [
"printf(\"P6\\n\");"
]
}
}
{
// 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"
// }
"Initialize Argument Parser": {
"prefix": "argparse",
"body": [
"import argparse", // hopefully IDE's sort-import-statements feature should be able to move this line to the head of the file
"parser = argparse.ArgumentParser(description='$1')",
"parser.add_argument('$2', $3)",
"args = parser.parse_args()",
"", // normally followed by a blank line
"$0"
]
},
"main entry point": {
"prefix": "main",
"body": [
"if __name__ == '__main__':",
"\tmain()"
]
},
"P1": {
"prefix": "p1",
"body": [
"print(\"P1\")"
]
},
"P2": {
"prefix": "p2",
"body": [
"print(\"P2\")"
]
},
"P3": {
"prefix": "p3",
"body": [
"print(\"P3\")"
]
},
"P4": {
"prefix": "p4",
"body": [
"print(\"P4\")"
]
},
"P5": {
"prefix": "p5",
"body": [
"print(\"P5\")"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment