Skip to content

Instantly share code, notes, and snippets.

@Henri-lab
Last active February 7, 2025 02:41
Show Gist options
  • Save Henri-lab/65c9690e5360922b227104640fe9f617 to your computer and use it in GitHub Desktop.
Save Henri-lab/65c9690e5360922b227104640fe9f617 to your computer and use it in GitHub Desktop.
VSCode's Settings&Snippets - Syncing
[
{
"id": "aaron-bond.better-comments",
"name": "better-comments",
"publisher": "aaron-bond",
"version": "3.0.2"
},
{
"id": "adpyke.codesnap",
"name": "codesnap",
"publisher": "adpyke",
"version": "1.3.4"
},
{
"id": "ajshort.include-autocomplete",
"name": "include-autocomplete",
"publisher": "ajshort",
"version": "0.0.4"
},
{
"id": "akiramiyakoda.cppincludeguard",
"name": "cppincludeguard",
"publisher": "akiramiyakoda",
"version": "1.8.0"
},
{
"id": "alefragnani.project-manager",
"name": "project-manager",
"publisher": "alefragnani",
"version": "12.8.0"
},
{
"id": "almenon.arepl",
"name": "arepl",
"publisher": "almenon",
"version": "3.0.0"
},
{
"id": "amiralizadeh9480.cpp-helper",
"name": "cpp-helper",
"publisher": "amiralizadeh9480",
"version": "0.3.4"
},
{
"id": "amodio.tsl-problem-matcher",
"name": "tsl-problem-matcher",
"publisher": "amodio",
"version": "0.6.2"
},
{
"id": "anseki.vscode-color",
"name": "vscode-color",
"publisher": "anseki",
"version": "0.4.5"
},
{
"id": "asurance.binary-preview",
"name": "binary-preview",
"publisher": "asurance",
"version": "0.0.2"
},
{
"id": "azemoh.one-monokai",
"name": "one-monokai",
"publisher": "azemoh",
"version": "0.5.2"
},
{
"id": "batisteo.vscode-django",
"name": "vscode-django",
"publisher": "batisteo",
"version": "1.15.0"
},
{
"id": "bbenoist.Doxygen",
"name": "Doxygen",
"publisher": "bbenoist",
"version": "1.0.0"
},
{
"id": "bierner.color-info",
"name": "color-info",
"publisher": "bierner",
"version": "0.7.2"
},
{
"id": "bierner.comment-tagged-templates",
"name": "comment-tagged-templates",
"publisher": "bierner",
"version": "0.3.3"
},
{
"id": "burkeholland.simple-react-snippets",
"name": "simple-react-snippets",
"publisher": "burkeholland",
"version": "1.2.8"
},
{
"id": "cheshirekow.cmake-format",
"name": "cmake-format",
"publisher": "cheshirekow",
"version": "0.6.11"
},
{
"id": "circledev.glsl-canvas",
"name": "glsl-canvas",
"publisher": "circledev",
"version": "0.2.15"
},
{
"id": "codezombiech.gitignore",
"name": "gitignore",
"publisher": "codezombiech",
"version": "0.9.0"
},
{
"id": "cschlosser.doxdocgen",
"name": "doxdocgen",
"publisher": "cschlosser",
"version": "1.4.0"
},
{
"id": "cweijan.dbclient-jdbc",
"name": "dbclient-jdbc",
"publisher": "cweijan",
"version": "1.3.9"
},
{
"id": "cweijan.vscode-mysql-client2",
"name": "vscode-mysql-client2",
"publisher": "cweijan",
"version": "8.1.2"
},
{
"id": "darian-benam.vscode-robots-dot-txt-support",
"name": "vscode-robots-dot-txt-support",
"publisher": "darian-benam",
"version": "1.5.1"
},
{
"id": "darktears.dark-c-plus-plus-theme",
"name": "dark-c-plus-plus-theme",
"publisher": "darktears",
"version": "0.3.0"
},
{
"id": "davidbwaters.macos-modern-theme",
"name": "macos-modern-theme",
"publisher": "davidbwaters",
"version": "2.3.19"
},
{
"id": "deerawan.vscode-dash",
"name": "vscode-dash",
"publisher": "deerawan",
"version": "2.4.0"
},
{
"id": "demystifying-javascript.python-extensions-pack",
"name": "python-extensions-pack",
"publisher": "demystifying-javascript",
"version": "1.0.3"
},
{
"id": "developersoapbox.vscode-springboot-snippets",
"name": "vscode-springboot-snippets",
"publisher": "developersoapbox",
"version": "1.2.0"
},
{
"id": "donjayamanne.git-extension-pack",
"name": "git-extension-pack",
"publisher": "donjayamanne",
"version": "0.1.3"
},
{
"id": "donjayamanne.githistory",
"name": "githistory",
"publisher": "donjayamanne",
"version": "0.6.20"
},
{
"id": "donjayamanne.python-environment-manager",
"name": "python-environment-manager",
"publisher": "donjayamanne",
"version": "1.2.7"
},
{
"id": "donjayamanne.python-extension-pack",
"name": "python-extension-pack",
"publisher": "donjayamanne",
"version": "1.7.0"
},
{
"id": "dsznajder.es7-react-js-snippets",
"name": "es7-react-js-snippets",
"publisher": "dsznajder",
"version": "4.4.3"
},
{
"id": "dtoplak.vscode-glsllint",
"name": "vscode-glsllint",
"publisher": "dtoplak",
"version": "1.9.0"
},
{
"id": "dvirtz.parquet-viewer",
"name": "parquet-viewer",
"publisher": "dvirtz",
"version": "2.11.1"
},
{
"id": "eamodio.gitlens",
"name": "gitlens",
"publisher": "eamodio",
"version": "16.2.1"
},
{
"id": "Endormi.2077-theme",
"name": "2077-theme",
"publisher": "Endormi",
"version": "1.5.3"
},
{
"id": "EQuimper.react-native-react-redux",
"name": "react-native-react-redux",
"publisher": "EQuimper",
"version": "2.0.6"
},
{
"id": "esbenp.prettier-vscode",
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "11.0.0"
},
{
"id": "ffaraone.opensslutils",
"name": "opensslutils",
"publisher": "ffaraone",
"version": "1.1.1"
},
{
"id": "formulahendry.code-runner",
"name": "code-runner",
"publisher": "formulahendry",
"version": "0.12.2"
},
{
"id": "foxundermoon.shell-format",
"name": "shell-format",
"publisher": "foxundermoon",
"version": "7.2.5"
},
{
"id": "fredericbonnet.cmake-test-adapter",
"name": "cmake-test-adapter",
"publisher": "fredericbonnet",
"version": "0.17.4"
},
{
"id": "galarius.vscode-opencl",
"name": "vscode-opencl",
"publisher": "galarius",
"version": "0.8.5"
},
{
"id": "GeForceLegend.vscode-glsl",
"name": "vscode-glsl",
"publisher": "GeForceLegend",
"version": "0.3.3"
},
{
"id": "georgewfraser.vscode-javac",
"name": "vscode-javac",
"publisher": "georgewfraser",
"version": "0.2.46"
},
{
"id": "GitHub.github-vscode-theme",
"name": "github-vscode-theme",
"publisher": "GitHub",
"version": "6.3.5"
},
{
"id": "GitHub.remotehub",
"name": "remotehub",
"publisher": "GitHub",
"version": "0.64.0"
},
{
"id": "GrapeCity.gc-excelviewer",
"name": "gc-excelviewer",
"publisher": "GrapeCity",
"version": "4.2.62"
},
{
"id": "HarryHopkinson.vim-theme",
"name": "vim-theme",
"publisher": "HarryHopkinson",
"version": "1.1.8"
},
{
"id": "hars.CppSnippets",
"name": "CppSnippets",
"publisher": "hars",
"version": "0.0.15"
},
{
"id": "hassanoof.theme",
"name": "theme",
"publisher": "hassanoof",
"version": "0.0.1"
},
{
"id": "hbenl.vscode-test-explorer",
"name": "vscode-test-explorer",
"publisher": "hbenl",
"version": "2.22.1"
},
{
"id": "hediet.vscode-drawio",
"name": "vscode-drawio",
"publisher": "hediet",
"version": "1.6.6"
},
{
"id": "hollowtree.vue-snippets",
"name": "vue-snippets",
"publisher": "hollowtree",
"version": "1.0.4"
},
{
"id": "humao.rest-client",
"name": "rest-client",
"publisher": "humao",
"version": "0.25.1"
},
{
"id": "IBM.output-colorizer",
"name": "output-colorizer",
"publisher": "IBM",
"version": "0.1.2"
},
{
"id": "infeng.vscode-react-typescript",
"name": "vscode-react-typescript",
"publisher": "infeng",
"version": "1.3.1"
},
{
"id": "ionutvmi.path-autocomplete",
"name": "path-autocomplete",
"publisher": "ionutvmi",
"version": "1.25.0"
},
{
"id": "James-Yu.latex-workshop",
"name": "latex-workshop",
"publisher": "James-Yu",
"version": "10.7.5"
},
{
"id": "jeff-hykin.better-cpp-syntax",
"name": "better-cpp-syntax",
"publisher": "jeff-hykin",
"version": "1.27.1"
},
{
"id": "johnpapa.winteriscoming",
"name": "winteriscoming",
"publisher": "johnpapa",
"version": "1.4.4"
},
{
"id": "KevinRose.vsc-python-indent",
"name": "vsc-python-indent",
"publisher": "KevinRose",
"version": "1.19.0"
},
{
"id": "Kleysley.intellij-theme-cpp",
"name": "intellij-theme-cpp",
"publisher": "Kleysley",
"version": "1.0.0"
},
{
"id": "kriegalex.vscode-cudacpp",
"name": "vscode-cudacpp",
"publisher": "kriegalex",
"version": "0.1.1"
},
{
"id": "LeoJhonSong.latex-extension-pack",
"name": "latex-extension-pack",
"publisher": "LeoJhonSong",
"version": "0.1.2"
},
{
"id": "lllllllqw.jsdoc",
"name": "jsdoc",
"publisher": "lllllllqw",
"version": "1.0.9"
},
{
"id": "llvm-vs-code-extensions.vscode-clangd",
"name": "vscode-clangd",
"publisher": "llvm-vs-code-extensions",
"version": "0.1.33"
},
{
"id": "loiane.java-spring-extension-pack",
"name": "java-spring-extension-pack",
"publisher": "loiane",
"version": "0.2.3"
},
{
"id": "matepek.vscode-catch2-test-adapter",
"name": "vscode-catch2-test-adapter",
"publisher": "matepek",
"version": "4.12.2"
},
{
"id": "mblet.dark-plus-cpp",
"name": "dark-plus-cpp",
"publisher": "mblet",
"version": "0.2.3"
},
{
"id": "mechatroner.rainbow-csv",
"name": "rainbow-csv",
"publisher": "mechatroner",
"version": "3.14.0"
},
{
"id": "mhutchie.git-graph",
"name": "git-graph",
"publisher": "mhutchie",
"version": "1.30.0"
},
{
"id": "mintlify.document",
"name": "document",
"publisher": "mintlify",
"version": "2.2.2"
},
{
"id": "ms-azuretools.vscode-docker",
"name": "vscode-docker",
"publisher": "ms-azuretools",
"version": "1.29.4"
},
{
"id": "ms-python.black-formatter",
"name": "black-formatter",
"publisher": "ms-python",
"version": "2024.4.0"
},
{
"id": "ms-python.debugpy",
"name": "debugpy",
"publisher": "ms-python",
"version": "2024.14.0"
},
{
"id": "ms-python.python",
"name": "python",
"publisher": "ms-python",
"version": "2024.22.2"
},
{
"id": "ms-python.vscode-pylance",
"name": "vscode-pylance",
"publisher": "ms-python",
"version": "2024.12.1"
},
{
"id": "ms-toolsai.datawrangler",
"name": "datawrangler",
"publisher": "ms-toolsai",
"version": "1.16.0"
},
{
"id": "ms-toolsai.jupyter",
"name": "jupyter",
"publisher": "ms-toolsai",
"version": "2024.11.0"
},
{
"id": "ms-vscode.azure-repos",
"name": "azure-repos",
"publisher": "ms-vscode",
"version": "0.40.0"
},
{
"id": "ms-vscode.cmake-tools",
"name": "cmake-tools",
"publisher": "ms-vscode",
"version": "1.19.52"
},
{
"id": "ms-vscode.cpptools",
"name": "cpptools",
"publisher": "ms-vscode",
"version": "1.22.11"
},
{
"id": "ms-vscode.cpptools-extension-pack",
"name": "cpptools-extension-pack",
"publisher": "ms-vscode",
"version": "1.3.0"
},
{
"id": "ms-vscode.cpptools-themes",
"name": "cpptools-themes",
"publisher": "ms-vscode",
"version": "2.0.0"
},
{
"id": "ms-vscode.extension-test-runner",
"name": "extension-test-runner",
"publisher": "ms-vscode",
"version": "0.0.12"
},
{
"id": "ms-vscode.live-server",
"name": "live-server",
"publisher": "ms-vscode",
"version": "0.4.15"
},
{
"id": "ms-vscode.makefile-tools",
"name": "makefile-tools",
"publisher": "ms-vscode",
"version": "0.11.13"
},
{
"id": "ms-vscode.powershell",
"name": "powershell",
"publisher": "ms-vscode",
"version": "2025.0.0"
},
{
"id": "ms-vscode.remote-repositories",
"name": "remote-repositories",
"publisher": "ms-vscode",
"version": "0.42.0"
},
{
"id": "ms-vscode.test-adapter-converter",
"name": "test-adapter-converter",
"publisher": "ms-vscode",
"version": "0.2.1"
},
{
"id": "msjsdiag.vscode-react-native",
"name": "vscode-react-native",
"publisher": "msjsdiag",
"version": "1.13.0"
},
{
"id": "nickfode.latex-formatter",
"name": "latex-formatter",
"publisher": "nickfode",
"version": "1.0.5"
},
{
"id": "njpwerner.autodocstring",
"name": "autodocstring",
"publisher": "njpwerner",
"version": "0.6.1"
},
{
"id": "nonoroazoro.syncing",
"name": "syncing",
"publisher": "nonoroazoro",
"version": "3.3.9"
},
{
"id": "Nuuf.theme-hackershaze",
"name": "theme-hackershaze",
"publisher": "Nuuf",
"version": "2.0.1"
},
{
"id": "octref.vetur",
"name": "vetur",
"publisher": "octref",
"version": "0.37.3"
},
{
"id": "oderwat.indent-rainbow",
"name": "indent-rainbow",
"publisher": "oderwat",
"version": "8.3.1"
},
{
"id": "Oracle.oracle-java",
"name": "oracle-java",
"publisher": "Oracle",
"version": "23.0.1"
},
{
"id": "PawelBorkar.jellyfish",
"name": "jellyfish",
"publisher": "PawelBorkar",
"version": "0.0.4"
},
{
"id": "PKief.material-icon-theme",
"name": "material-icon-theme",
"publisher": "PKief",
"version": "5.17.0"
},
{
"id": "Postman.postman-for-vscode",
"name": "postman-for-vscode",
"publisher": "Postman",
"version": "1.6.1"
},
{
"id": "raczzalan.webgl-glsl-editor",
"name": "webgl-glsl-editor",
"publisher": "raczzalan",
"version": "1.3.8"
},
{
"id": "rahmanyerli.ra-spring",
"name": "ra-spring",
"publisher": "rahmanyerli",
"version": "1.2.0"
},
{
"id": "raits.cpp-development",
"name": "cpp-development",
"publisher": "raits",
"version": "0.0.5"
},
{
"id": "redhat.java",
"name": "java",
"publisher": "redhat",
"version": "1.39.0"
},
{
"id": "redhat.vscode-xml",
"name": "vscode-xml",
"publisher": "redhat",
"version": "0.27.2"
},
{
"id": "redhat.vscode-yaml",
"name": "vscode-yaml",
"publisher": "redhat",
"version": "1.15.0"
},
{
"id": "reloadedextensions.reloaded-cpp",
"name": "reloaded-cpp",
"publisher": "reloadedextensions",
"version": "0.1.9"
},
{
"id": "ritwickdey.LiveServer",
"name": "LiveServer",
"publisher": "ritwickdey",
"version": "5.7.9"
},
{
"id": "RobbOwen.synthwave-vscode",
"name": "synthwave-vscode",
"publisher": "RobbOwen",
"version": "0.1.17"
},
{
"id": "rocketseat.theme-omni",
"name": "theme-omni",
"publisher": "rocketseat",
"version": "1.0.12"
},
{
"id": "rodrigovallades.es7-react-js-snippets",
"name": "es7-react-js-snippets",
"publisher": "rodrigovallades",
"version": "1.9.3"
},
{
"id": "ryanluker.vscode-coverage-gutters",
"name": "vscode-coverage-gutters",
"publisher": "ryanluker",
"version": "2.12.0"
},
{
"id": "sdras.vue-vscode-snippets",
"name": "vue-vscode-snippets",
"publisher": "sdras",
"version": "3.2.0"
},
{
"id": "shalldie.background",
"name": "background",
"publisher": "shalldie",
"version": "2.0.3"
},
{
"id": "shengchen.vscode-checkstyle",
"name": "vscode-checkstyle",
"publisher": "shengchen",
"version": "1.4.2"
},
{
"id": "slevesque.shader",
"name": "shader",
"publisher": "slevesque",
"version": "1.1.5"
},
{
"id": "sohibe.java-generate-setters-getters",
"name": "java-generate-setters-getters",
"publisher": "sohibe",
"version": "8.0.1"
},
{
"id": "streetsidesoftware.code-spell-checker",
"name": "code-spell-checker",
"publisher": "streetsidesoftware",
"version": "4.0.34"
},
{
"id": "susiwen8.vscode-echarts-extension",
"name": "vscode-echarts-extension",
"publisher": "susiwen8",
"version": "0.2.3"
},
{
"id": "talltotal.definition-resolve",
"name": "definition-resolve",
"publisher": "talltotal",
"version": "0.0.6"
},
{
"id": "tamasfe.even-better-toml",
"name": "even-better-toml",
"publisher": "tamasfe",
"version": "0.21.2"
},
{
"id": "thebarkman.vscode-djaneiro",
"name": "vscode-djaneiro",
"publisher": "thebarkman",
"version": "1.4.2"
},
{
"id": "tinkertrain.theme-panda",
"name": "theme-panda",
"publisher": "tinkertrain",
"version": "1.3.0"
},
{
"id": "tomoki1207.pdf",
"name": "pdf",
"publisher": "tomoki1207",
"version": "1.2.2"
},
{
"id": "twxs.cmake",
"name": "cmake",
"publisher": "twxs",
"version": "0.0.17"
},
{
"id": "unthrottled.doki-theme",
"name": "doki-theme",
"publisher": "unthrottled",
"version": "88.1.18"
},
{
"id": "UstymUkhman.matrix-theme",
"name": "matrix-theme",
"publisher": "UstymUkhman",
"version": "0.1.3"
},
{
"id": "uyiosa-enabulele.reopenclosedtab",
"name": "reopenclosedtab",
"publisher": "uyiosa-enabulele",
"version": "1.1.0"
},
{
"id": "vadimcn.vscode-lldb",
"name": "vscode-lldb",
"publisher": "vadimcn",
"version": "1.11.2"
},
{
"id": "VisualStudioExptTeam.intellicode-api-usage-examples",
"name": "intellicode-api-usage-examples",
"publisher": "VisualStudioExptTeam",
"version": "0.2.9"
},
{
"id": "VisualStudioExptTeam.vscodeintellicode",
"name": "vscodeintellicode",
"publisher": "VisualStudioExptTeam",
"version": "1.3.2"
},
{
"id": "vmware.vscode-boot-dev-pack",
"name": "vscode-boot-dev-pack",
"publisher": "vmware",
"version": "0.2.1"
},
{
"id": "vmware.vscode-spring-boot",
"name": "vscode-spring-boot",
"publisher": "vmware",
"version": "1.59.0"
},
{
"id": "vscjava.vscode-gradle",
"name": "vscode-gradle",
"publisher": "vscjava",
"version": "3.16.4"
},
{
"id": "vscjava.vscode-java-debug",
"name": "vscode-java-debug",
"publisher": "vscjava",
"version": "0.58.1"
},
{
"id": "vscjava.vscode-java-dependency",
"name": "vscode-java-dependency",
"publisher": "vscjava",
"version": "0.24.1"
},
{
"id": "vscjava.vscode-java-pack",
"name": "vscode-java-pack",
"publisher": "vscjava",
"version": "0.29.0"
},
{
"id": "vscjava.vscode-java-test",
"name": "vscode-java-test",
"publisher": "vscjava",
"version": "0.43.0"
},
{
"id": "vscjava.vscode-maven",
"name": "vscode-maven",
"publisher": "vscjava",
"version": "0.44.0"
},
{
"id": "vscjava.vscode-spring-boot-dashboard",
"name": "vscode-spring-boot-dashboard",
"publisher": "vscjava",
"version": "0.14.0"
},
{
"id": "vscjava.vscode-spring-initializr",
"name": "vscode-spring-initializr",
"publisher": "vscjava",
"version": "0.11.2"
},
{
"id": "vscodevim.vim",
"name": "vim",
"publisher": "vscodevim",
"version": "1.29.0"
},
{
"id": "Vue.volar",
"name": "volar",
"publisher": "Vue",
"version": "2.2.0"
},
{
"id": "whizkydee.material-palenight-theme",
"name": "material-palenight-theme",
"publisher": "whizkydee",
"version": "2.0.4"
},
{
"id": "wholroyd.jinja",
"name": "jinja",
"publisher": "wholroyd",
"version": "0.0.8"
},
{
"id": "xaver.clang-format",
"name": "clang-format",
"publisher": "xaver",
"version": "1.9.0"
},
{
"id": "Xen.ccpp-theme",
"name": "ccpp-theme",
"publisher": "Xen",
"version": "0.3.4"
},
{
"id": "xshrim.txt-syntax",
"name": "txt-syntax",
"publisher": "xshrim",
"version": "0.2.4"
},
{
"id": "Youssef.viow",
"name": "viow",
"publisher": "Youssef",
"version": "0.3.3"
},
{
"id": "ZainChen.json",
"name": "json",
"publisher": "ZainChen",
"version": "2.0.2"
},
{
"id": "zhuangtongfa.material-theme",
"name": "material-theme",
"publisher": "zhuangtongfa",
"version": "3.17.7"
},
{
"id": "ziyasal.vscode-open-in-github",
"name": "vscode-open-in-github",
"publisher": "ziyasal",
"version": "1.3.6"
}
]
// Place your key bindings in this file to override the defaults
[
]
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+alt+k",
"command": "bracket-jumper.ascendLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+up",
"command": "-bracket-jumper.ascendLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+h",
"command": "bracket-jumper.jumpLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+left",
"command": "-bracket-jumper.jumpLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+l",
"command": "bracket-jumper.jumpRight",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+right",
"command": "-bracket-jumper.jumpRight",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+j",
"command": "bracket-jumper.ascendRight",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+down",
"command": "-bracket-jumper.ascendRight",
"when": "editorTextFocus"
}
]
{
// 文件自动保存设置
"files.autoSave": "afterDelay",
// 主题与图标设置
"workbench.colorTheme": "Viow Arabian - Mix", // 设置颜色主题
"workbench.iconTheme": "material-icon-theme", // 设置图标主题
"workbench.productIconTheme": "macos-modern", // 设置产品图标主题
// Synthwave '84 主题配置
"synthwave84.disableGlow": false, // 启用发光效果
// 代码编辑器设置
"editor.largeFileOptimizations": false,
"editor.codeActionsOnSave": {}, // 保存时执行代码操作
"security.workspace.trust.untrustedFiles": "open", // 打开未信任的文件时设置行为
"explorer.confirmDragAndDrop": false, // 拖放时不进行确认
"explorer.confirmDelete": false, // 删除时不进行确认
"window.zoomLevel": 1, // 设置窗口缩放级别
"window.confirmSaveUntitledWorkspace": false, // 不确认保存未命名工作区
"workbench.colorCustomizations": {},
// -- 终端设置
"terminal.integrated.defaultProfile.windows": "bash", // 设置 Windows 默认终端为 bash
"terminal.integrated.defaultProfile.osx": "bash",
"terminal.integrated.inheritEnv": false,
//
"DefinitionResolve.open": true, // 启用定义解析
"DefinitionResolve.default.resolve": {
// 定义解析的扩展和别名设置
"extensions": [".js", ".vue", ".json"],
"alias": {
"vue$": "vue/dist/vue.esm.js",
"@": "$root$/src",
"@c": "$root$/src/components",
"@s": "$root$/src/store",
"@a": "$root$/src/api",
"@v": "$root$/src/views",
"@r": "$root$/src/router",
"@p": "$root$/src/plugins",
"@t": "$root$/src/types"
}
},
// Vim 配置(Vim 插件相关设置)
"vim.easymotion": true, // 启用 Easymotion 功能
"vim.incsearch": true, // 启用增量搜索
"vim.useSystemClipboard": true, // 使用系统剪贴板
"vim.useCtrlKeys": true, // 允许使用 Ctrl 键作为 Vim 快捷键
"vim.hlsearch": true, // 搜索高亮
"vim.insertModeKeyBindings": [
// 插入模式按键绑定
{
"before": ["j", "j"],
"after": ["<Esc>"] // 快速退出插入模式
}
],
"vim.normalModeKeyBindingsNonRecursive": [
// 正常模式下的非递归按键绑定
{
"before": ["<leader>", "d"],
"after": ["d", "d"] // 自定义删除命令
},
{
"before": ["<C-n>"],
"commands": [":nohl"] // 取消高亮
},
{
"before": ["K"],
"commands": ["lineBreakInsert"], // 插入换行
"silent": true
}
],
"vim.leader": "<space>", // 设置 leader 键为空格键
"vim.handleKeys": {
// 禁用部分 Ctrl 键绑定
"<C-a>": false,
"<C-f>": false
},
// Prettier 配置(代码格式化工具)
"editor.defaultFormatter": "esbenp.prettier-vscode", // 设置 Prettier 为默认格式化器
"prettier.jsxSingleQuote": true, // 在 JSX 中使用单引号
"prettier.singleQuote": true, // 在 JavaScript 中使用单引号
// 语言格式化配置
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode" // 设置 SCSS 的格式化器
},
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features" // 设置 JavaScript 的格式化器
},
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features" // 设置 HTML 的格式化器
},
"[css]": {
"editor.defaultFormatter": "vscode.css-language-features" // 设置 CSS 的格式化器
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode" // 设置 JSONC 的格式化器
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode" // 设置 Vue 的格式化器
},
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features" // 设置 TypeScript React 的格式化器
},
"[cpp]": {
"editor.defaultFormatter":"ms-vscode.cpptools" // 设置 C++ 的格式化器
},
"[xml]": {
"editor.defaultFormatter": "redhat.vscode-xml" // 设置 XML 的格式化器
},
"[sql]": {
"editor.defaultFormatter": "cweijan.vscode-mysql-client2" // 设置 SQL 的格式化器
},
"[glsl]": {
"editor.defaultFormatter": "raczzalan.webgl-glsl-editor" // 设置 GLSL 的格式化器
},
"[svg]": {
"editor.defaultFormatter": "jock.svg" // 设置 SVG 的格式化器
},
"[cmake]": {
"editor.defaultFormatter": "cheshirekow.cmake-format"
},
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
// Emmet 配置(自动补全设置)
"emmet.triggerExpansionOnTab": true, // 启用 Tab 键触发 Emmet 扩展
"emmet.showAbbreviationSuggestions": true, // 显示缩写建议
"emmet.showExpandedAbbreviation": "always", // 始终显示扩展后的缩写
"emmet.includeLanguages": {
// 指定语言的 Emmet 支持
"javascript": "html" // 在 JavaScript 文件中启用 HTML 的 Emmet 支持
},
// Tabnine 插件配置(AI 自动补全)
"tabnine.experimentalAutoImports": true, // 启用 Tabnine 实验性的自动导入功能
// Java 配置
"java.jdt.ls.java.home": "/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home", // 设置 Java 安装路径
// CMake 配置
"cmake.configureOnOpen": true, // 打开项目时自动配置 CMake
"cmake.pinnedCommands": [
"workbench.action.tasks.configureTaskRunner", // 固定的 CMake 配置命令
"workbench.action.tasks.runTask"
],
// RedHat 插件配置
"redhat.telemetry.enabled": true, // 启用 RedHat 插件的遥测数据
// Git 配置
"git.autofetch": true, // 自动获取 Git 更新
"git.openRepositoryInParentFolders": "never", // 不在父文件夹中打开 Git 仓库
"git.confirmSync": false, // 同步前不确认
"git.ignoreRebaseWarning": true, // 忽略 Rebase 警告
// GitLens 插件配置
"gitlens.hovers.currentLine.over": "line", // 在行上显示 GitLens hover 信息
"gitlens.mode.active": "zen", // 启用审查模式
"gitlens.ai.experimental.model": "openai:gpt-4o", // 启用 GitLens 的 GPT-4 AI 模型支持
// Live Server 配置
"liveServer.settings.root": "", // 设置 Live Server 的根目录为空
"liveServer.settings.donotVerifyTags": true, // 禁用标签验证
// NPM 配置
"npm.packageManager": "pnpm", // 设置默认的包管理器为 npm
// 扩展更新配置
"extensions.autoUpdate": "onlyEnabledExtensions", // 仅自动更新已启用的扩展
// Draw.io 插件配置
"hediet.vscode-drawio.resizeImages": null,
//cmake
"cmake.showOptionsMovedNotification": false,
"cmake.options.advanced": {
"buildPreset": {},
"build": {
"statusBarVisibility": "inherit",
"inheritDefault": "visible"
},
"launch": {
"statusBarVisibility": "inherit",
"inheritDefault": "visible"
},
"debug": {
"statusBarVisibility": "inherit",
"inheritDefault": "visible"
}
},
//cSpell 检查关闭
"cSpell.enabled": false,
"cSpell.languageSettings": [],
//c/c++;选择使用clangd
"C_Cpp.intelliSenseEngine": "disabled",
//clangd language server
"clangd.path": "/Users/henrifox/Library/Application Support/Code/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/18.1.3/clangd_18.1.3/bin/clangd",
//code-runner
"code-runner.executorMap": {
"cpp": "cd $dir && clang++ -std=c++20 $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"python": "cd $dir && python -u $filename"
},
"code-runner.showExecutionMessage": true,
"database-client.autoSync": true,
"makefile.configureOnOpen": true,
"[snippets]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"editor.accessibilitySupport": "on",
}
{
// Place your snippets for cpp 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"
// }
// Fast I/O for competitive programming
"Fast IO": {
"prefix": "fastio",
"body": [
"ios::sync_with_stdio(false);",
"cin.tie(0);",
"cout.tie(0);"
],
"description": "Set up fast I/O for competitive programming"
},
// Range-based for loop
"Range-based for loop": {
"prefix": "forin",
"body": [
"for (auto& ${1:element} : ${2:container}) {",
" $0",
"}"
],
"description": "Range-based for loop"
},
// Standard for loop
"For loop": {
"prefix": "for",
"body": [
"for (int ${1:i} = 0; ${1} < ${2:n}; ++${1}) {",
" $0",
"}"
],
"description": "Standard for loop"
},
// Vector initialization
"Vector initialization": {
"prefix": "vecinit",
"body": [
"vector<${1:int}> ${2:vec}(${3:size}, ${4:default_value});"
],
"description": "Initialize a vector with size and default value"
},
// 2D Vector initialization
"2D Vector initialization": {
"prefix": "vec2d",
"body": [
"vector<vector<${1:int}>> ${2:matrix}(${3:rows}, vector<${1}>(${4:cols}, ${5:default_value}));"
],
"description": "Initialize a 2D vector with rows, cols, and default value"
},
// Lambda function
"Lambda function": {
"prefix": "lambda",
"body": [
"auto ${1:func} = [](${2:int a}, ${3:int b}) {",
" return ${4:a < b};",
"};"
],
"description": "Lambda function"
},
// Template function
"Template function": {
"prefix": "template",
"body": [
"template <typename ${1:T}>",
"${1} ${2:add}(${1} ${3:a}, ${1} ${4:b}) {",
" return ${3} + ${4};",
"}"
],
"description": "Template function"
},
// Assertion for debugging
"Assertion": {
"prefix": "assert",
"body": [
"#include <cassert>",
"",
"assert(${1:condition} && \"${2:Error message}\");"
],
"description": "Assertion for debugging"
},
// Sort a vector
"Sort vector ascending": {
"prefix": "sortasc",
"body": [
"sort(${1:vec}.begin(), ${1}.end());"
],
"description": "Sort vector in ascending order"
},
"Sort vector descending": {
"prefix": "sortdesc",
"body": [
"sort(${1:vec}.rbegin(), ${1}.rend());"
],
"description": "Sort vector in descending order"
},
// Measure execution time
"Measure execution time": {
"prefix": "timer",
"body": [
"#include <chrono>",
"",
"auto start = chrono::high_resolution_clock::now();",
"$0",
"auto end = chrono::high_resolution_clock::now();",
"auto duration = chrono::duration_cast<chrono::milliseconds>(end - start).count();",
"cout << \"Duration: \" << duration << \" ms\" << endl;"
],
"description": "Measure execution time"
},
// Smart pointer
"Unique Pointer": {
"prefix": "uptr",
"body": [
"#include <memory>",
"",
"unique_ptr<${1:int}> ${2:ptr} = make_unique<${1}>(${3:10});",
"cout << *${2} << endl;"
],
"description": "Declare a unique pointer"
},
"->": {
"prefix": "..",
"body": [
"->"
],
"description": "->"
}
}
{
// Place your snippets for cuda-cpp 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 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"
// }
"import ol": {
"prefix": "ol",
"body": [
"<!-- 导入openlayers的依赖 -->",
"<link rel="stylesheet" href='https://lib.baomitu.com/ol3/4.6.5/ol.css'>",
"<script src='https://lib.baomitu.com/ol3/4.6.5/ol.js'></script>",
],
"description": "导入openlayers的依赖"
}
}
{
// Place your snippets for java 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 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 console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"Print to console": {
"prefix": "cc",
"body": [
"console.log($1)"
],
"description": "Log output to console"
},
"write to body": {
"prefix": "dd",
"body": [
"document.write($1)"
],
"description": "write to body"
},
// -----------------------------------------------
"for(i;;;)": {
"prefix": "ffi",
"body": [
"for(let i=0;i<$1;i++)"
],
"description": "for(i;;;)"
},
"for(j;;;)": {
"prefix": "ffj",
"body": [
"for(let j=0;j<$1;j++)"
],
"description": "for(j;;;)"
},
"for(k;;;)": {
"prefix": "ffk",
"body": [
"for(let k=0;k<$1;k++)"
],
"description": "for(k;;;)"
},
"If statement": {
"prefix": "if",
"body": [
"if (${1:condition}) {",
" $2",
"}"
],
"description": "Create an if statement"
},
"Arrow function": {
"prefix": "af",
"body": [
"const ${1:functionName} = (${2:params}) => {",
" $3",
"};"
],
"description": "Create an arrow function"
},
"ACM IO Template": {
"prefix": "acm",
"body": [
"const readline = require('readline');",
"",
"const r1 = readline.createInterface({",
" input: process.stdin,",
" output: process.stdout",
"});",
"",
"let inputLines = [];",
"r1.on('line', (line) => {",
" inputLines.push(line);",
"});",
"",
"r1.on('close', () => {",
" for (let line of inputLines) {",
" console.log('line:', line);",
" }",
"});"
],
"description": "acm io template"
},
}
{
// Place your snippets for objective-cpp 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 scss 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"
// }
"::v-deep": {
"prefix": "vv",
"body": [
"::v-deep",
],
"description": "::v-deep(>>>)"
}
}
{
// Place your snippets for typescript 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": "cc",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment