「开发工具配置备份」VS Code个人配置文件备份

VS Code的自动同步老是会干掉我的VS Code个人配置文件,虽然可以找到以前的配置文件,但是还是好麻烦,所以在博客园备份一下,顺便也作为分享

点击查看代码
{
    /*
        全局设置
    */
    // 编辑器与文件
    "editor.lineHeight": 25, // 行间距
    "editor.fontSize": 18, // 字号
    "editor.fontWeight": "bold", // 粗体
    "editor.letterSpacing": 1, // 字母间距
    "editor.fontFamily": "Fira Code Light, Consolas, Microsoft YaHei", // 字体集
    "editor.fontLigatures": true, // 开启连写
    "editor.formatOnPaste": true, // 粘贴时格式化
    "editor.formatOnSave": true, // 保存时自动格式化
    "editor.linkedEditing": true, // 链接编辑(如html左右标签自动同步更改)
    "editor.wordWrap": "on", // 显示内容自动换行
    "files.autoSave": "afterDelay", // 自动保存
    "files.autoGuessEncoding": true, // 自动猜测文件编码
    // 工作台与窗口
    "workbench.colorTheme": "One Dark Pro Darker", // 全局主题
    "workbench.iconTheme": "material-icon-theme", // 图标主题
    "workbench.startupEditor": "none", // 默认打开上一次的文件
    "workbench.editorAssociations": { // 编辑器关联
        "*.ipynb": "jupyter-notebook"
    },
    "window.commandCenter": false, // 顶部中央下拉框
    // 背景图片插件
    "background.useDefault": false, // 是否使用默认图片
    "background.customImages": [ // 各背景图片目录
        "file:///F:/图片/壁纸锁屏/希儿6_改.png",
        "file:///F:/图片/壁纸锁屏/希儿6_改.png",
        "file:///F:/图片/壁纸锁屏/希儿6_改.png",
        "file:///F:/图片/壁纸锁屏/希儿6_改.png",
    ],
    "background.styles": [ // 各背景图片样式(与css类似)
        {
            "content": "''",
            "pointer-events": "none",
            "position": "absolute",
            "width": "100%",
            "height": "100%",
            "z-index": "99999",
            "background.repeat": "no-repeat",
            "background-size": "40%",
            "bottom": "10%",
            "opacity": 0.1,
        },
        {
            "content": "''",
            "pointer-events": "none",
            "position": "absolute",
            "width": "100%",
            "height": "100%",
            "z-index": "99999",
            "background.repeat": "no-repeat",
            "background-size": "40%",
            "bottom": "10%",
            "opacity": 0.1,
        },
        {
            "content": "''",
            "pointer-events": "none",
            "position": "absolute",
            "width": "100%",
            "height": "100%",
            "z-index": "99999",
            "background.repeat": "no-repeat",
            "background-size": "40%",
            "bottom": "10%",
            "opacity": 0.1,
        },
        {
            "content": "''",
            "pointer-events": "none",
            "position": "absolute",
            "width": "100%",
            "height": "100%",
            "z-index": "99999",
            "background.repeat": "no-repeat",
            "background-size": "40%",
            "bottom": "10%",
            "opacity": 0.1,
        },
    ],
    "background.useFront": true, // 是否使用前景图
    // code runner插件
    "code-runner.runInTerminal": true, // 在终端运行
    "terminal.integrated.enableMultiLinePasteWarning": false, // 关闭多行粘贴提示
    "code-runner.saveFileBeforeRun": true, // 运行前自动保存文件
    "code-runner.executorMap": { // 各语言终端运行时执行的指令
        // c与c++ 先在目录下创建一个exe的文件夹以保存编译后的可执行文件,然后再进行运行,通过手动给出后缀名以及使用双引号兼容带.号以及空格的文件名
        "c": "cd $dir && $obsession = md -Force exe && gcc \"$fileName\" -o exe/\"$fileNameWithoutExt.exe\" && ./exe/\"$fileNameWithoutExt.exe\"",
        "cpp": "cd $dir && $obsession = md -Force exe && g++ -std=c++11 \"$fileName\" -o exe/\"$fileNameWithoutExt.exe\" && ./exe/\"$fileNameWithoutExt.exe\"",
        "java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
        "go": "go run",
        "python": "python -u",
        "javascript": "node",
        "html": "\"C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe\"",
        "php": "C:\\php\\php.exe",
        "perl": "perl",
        "perl6": "perl6",
        "ruby": "C:\\Ruby23-x64\\bin\\ruby.exe",
        "objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "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",
        "sml": "cd $dir && sml $fileName"
    },
    /*
        算法相关
    */
    // 力扣插件
    "leetcode.endpoint": "leetcode-cn", // 力扣站点
    "leetcode.defaultLanguage": "cpp", // 默认语言
    "leetcode.workspaceFolder": "e:\\CPP\\code\\LeetCode", // 力扣文件保存路径
    "leetcode.useEndpointTranslation": false, // 使用原题的题面,不翻译
    "leetcode.hint.configWebviewMarkdown": false,
    "leetcode.hint.commentDescription": false,
    "leetcode.hint.commandShortcut": false,
    /*
        前端相关
    */
    // 浏览器
    "explorer.confirmDelete": false,
    "explorer.confirmDragAndDrop": false,
    /*
        博客相关
    */
    // markdown插件
    "markdown-pdf.executablePath": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", // 谷歌浏览器路径
    // 博客园插件
    "cnblogsClientForVSCode.workspace": "e:\\博客",
    /*
        git相关
    */
    "git.enableSmartCommit": true,
    /*
        不清楚干啥用的
    */
    "notebook.cellToolbarLocation": {
        "default": "right",
        "jupyter-notebook": "left"
    },
    "[html]": {
        "editor.defaultFormatter": "vscode.html-language-features"
    },
    "[javascript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    /*
        新增的配置
    */
}
posted @ 2022-11-16 15:36  星双子  阅读(150)  评论(0)    收藏  举报