Skip to content

【配置指南】Windows使用Cmder作为终端

1.下载安装

shell
scoop install cmder-full
  • CMDER_ROOT: D:\Apps\ScoopHome\App\apps\cmder-full\current

2.配置字体

FiraCode

3.配置高亮

4.配置Windows Terminal

json
{
    "colorScheme": "One Half Dark",
    "commandline": "cmd.exe /k \"D:\\Apps\\ScoopHome\\App\\apps\\cmder-full\\current\\vendor\\init.bat\"",
    "font": {
        "face": "Fira Code",
        "size": 8
    },
    "guid": "{a31c62a1-bcef-46a9-bf61-fddd395b7147}",
    "hidden": false,
    "icon": "D:\\Apps\\ScoopHome\\App\\apps\\cmder-full\\current\\icons\\cmder.ico",
    "name": "Cmder",
    "opacity": 90,
    "startingDirectory": "%USERPROFILE%",
    "suppressApplicationTitle": true,
    "useAcrylic": true
}

5.配置VSCode

  1. Ctrl-Shift-P : Open setting.json

  2. Add Cmder init step.

    json
    "terminal.integrated.shellArgs.windows": [ "/k %CMDER_ROOT%\\vendor\\init.bat" ],

    or

    json
    "terminal.integrated.shellArgs.windows": [
        "/k",
        "%CMDER_ROOT%\\vendor\\init.bat"
    ],
  3. Save setting.json and restart terminal.

参考资料

  1. Cmder 在 Windows 環境建立高仿 Linux 終端機

上次更新于: