配置效果:

Setting.png

设置

First

打开 Visual Studio Code 设置,在标签页右上角以 JSON 文件方式打开,直接编辑 JSON 配置,粘贴覆盖以下内容:

{
    "workbench.colorTheme": "Atom One Dark",
    "workbench.colorCustomizations": {
        "[Material Theme Darker]": {}
    },
    "editor.fontSize": 19,
    "code-runner.languageIdToFileExtensionMap": {

        "bat": ".bat",
        "powershell": ".ps1",
        "typescript": ".ts"
    },
    "code-runner.runInTerminal": true,
    "C_Cpp.commentContinuationPatterns": [
    
    
        "/**"
    ],
    "code-runner.executorMap": {

        "javascript": "node",
        "java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
        "c": "cd $dir && gcc \"$fileName\" -o \"$fileNameWithoutExt.exe\" && & \".\\$dir$fileNameWithoutExt\"",
        "cpp": "cd $dir && g++ \"$fileName\" -o \"$fileNameWithoutExt.exe\" && & \".\\$fileNameWithoutExt.exe\"",
        "objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "php": "php",
        "python": "python -u",
        "perl": "perl",
        "perl6": "perl6",
        "ruby": "ruby",
        "go": "go run",
        "lua": "lua",
        "groovy": "groovy",
        "powershell": "powershell -ExecutionPolicy ByPass -File",
        "bat": "cmd /c",
        "shellscript": "bash",
        "fsharp": "fsi",
        "csharp": "scriptcs",
        "vbscript": "cscript //Nologo",
        "typescript": "ts-node",
        "coffeescript": "coffee",
        "scala": "scala",
        "swift": "swift",
        "julia": "julia",
        "crystal": "crystal",
        "ocaml": "ocaml",
        "r": "Rscript",
        "applescript": "osascript",
        "clojure": "lein exec",
        "haxe": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt",
        "rust": "cd $dir && rustc $fileName && $dir$fileNameWithoutExt",
        "racket": "racket",
        "scheme": "csi -script",
        "ahk": "autohotkey",
        "autoit": "autoit3",
        "dart": "dart",
        "pascal": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
        "d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt",
        "haskell": "runhaskell",
        "nim": "nim compile --verbosity:0 --hints:off --run",
        "lisp": "sbcl --script",
        "kit": "kitc --run",
        "v": "v run",
        "sass": "sass --style expanded",
        "scss": "scss --style expanded",
        "less": "cd $dir && lessc $fileName $fileNameWithoutExt.css",
        "FortranFreeForm": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "fortran-modern": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "fortran_fixed-form": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "fortran": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt"
    },
    "files.autoSave": "afterDelay",
    "prettier.useTabs": true,
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "files.exclude": {
        "**/.classpath": true,
        "**/.project": true,
        "**/.settings": true,
        "**/.factorypath": true
    },
    "C_Cpp.updateChannel": "Insiders",
    "http.proxySupport": "off",
    "powermode.enabled": true,
    "[c]": {
        "editor.defaultFormatter": "ms-vscode.cpptools"
    },
    "php.validate.executablePath": "",
    "editor.fontFamily": "Courier New, 'Courier New', monospace",
    "java.completion.filteredTypes": [
    
        "java.awt.*",
        "com.sun.*",
        "sun.*"
    ],
    "java.configuration.checkProjectSettingsExclusions": false,
    "security.workspace.trust.untrustedFiles": "open",
    "[html]": {
        "editor.defaultFormatter": "vscode.html-language-features"
    },
    "window.zoomLevel": 1
}

插件备份

code --install-extension akamud.vscode-theme-onedark
code --install-extension akamud.vscode-theme-onelight
code --install-extension ankitcode.firefly
code --install-extension austin.code-gnu-global
code --install-extension barrsan.reui
code --install-extension Carrie999.dan-react-theme
code --install-extension ChirtleLovesDolls.nebula-theme
code --install-extension codexu.x-translator
code --install-extension cschlosser.doxdocgen
code --install-extension DotJoshJohnson.xml
code --install-extension enkia.tokyo-night
code --install-extension Equinusocio.vsc-community-material-theme
code --install-extension Equinusocio.vsc-material-theme
code --install-extension equinusocio.vsc-material-theme-icons
code --install-extension esbenp.prettier-vscode
code --install-extension fehey.brackets-light-pro
code --install-extension formulahendry.code-runner
code --install-extension GitHub.github-vscode-theme
code --install-extension hoovercj.vscode-power-mode
code --install-extension Horla.horla-light-theme
code --install-extension ionutvmi.reg
code --install-extension jeff-hykin.better-cpp-syntax
code --install-extension lonefy.vscode-JS-CSS-HTML-formatter
code --install-extension marqu3s.aurora-x
code --install-extension mrpbennett.atlantic-night
code --install-extension mrpbennettuk.atlantic-night
code --install-extension ms-azuretools.vscode-docker
code --install-extension ms-python.python
code --install-extension ms-toolsai.jupyter
code --install-extension ms-toolsai.jupyter-keymap
code --install-extension ms-toolsai.jupyter-renderers
code --install-extension ms-vscode-remote.remote-containers
code --install-extension ms-vscode-remote.remote-ssh
code --install-extension ms-vscode-remote.remote-ssh-edit
code --install-extension ms-vscode-remote.remote-wsl
code --install-extension ms-vscode.cmake-tools
code --install-extension ms-vscode.cpptools
code --install-extension ms-vscode.cpptools-extension-pack
code --install-extension ms-vscode.cpptools-themes
code --install-extension ms-vscode.powershell
code --install-extension ms-vsliveshare.vsliveshare
code --install-extension ms-vsliveshare.vsliveshare-audio
code --install-extension octref.vetur
code --install-extension PKief.material-icon-theme
code --install-extension redhat.java
code --install-extension ritwickdey.LiveServer
code --install-extension twxs.cmake
code --install-extension VisualStudioExptTeam.vscodeintellicode
code --install-extension vscjava.vscode-java-debug
code --install-extension vscjava.vscode-java-dependency
code --install-extension vscjava.vscode-java-pack
code --install-extension vscjava.vscode-java-test
code --install-extension vscjava.vscode-maven
code --install-extension webrender.synthwave-x-fluoromachine
code --install-extension zhuangtongfa.material-theme
最后修改:2021 年 11 月 01 日
赠人玫瑰,手有余香。您的赞赏是对我最大的支持!