6

美化windows下的VSC:通过集成 cmder 来使用 zsh

 3 years ago
source link: https://blog.zhuliang.ltd/2020/08/PowerUser/visual-studio-code-integrated-zsh.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

美化windows下的VSC:通过集成 cmder 来使用 zsh

create: 2020-08-06 11:55:01 | update: 2020-08-06 11:55:01 本文总阅读量: 51 次  |  文章总字数: 277 字  |  阅读约需: 1 分钟

  • MAC OS 中 iterm2 结合 zsh 对于开发而言,日常操作相当友好,同时对 MAC OS 下的 VSC 也相当友好,基本零配置。
  • 在 windows 环境下,除了通过 WSL 安装 ZSH 嵌入 VSC 外,如果你平时有使用 cmder,那么可以直接将 cmder 集成到 VSC 中。

最终在 VSC 终端的效果图:

20200806112445.png

日常 CMDER 效果如图下:

我已经集成 zsh,并设置了 cmder 一些快捷键跟 iterm2 保持一致,你可以根据自己的需要来定制自己的 cmder。

20200806112303.png

将 CMDER 集成到 VSC 中:

  • 在 VSC 用户配置中增加如下配置:
// integrated cmder
"terminal.external.windowsExec": "D:\\CMDER\\Cmder.exe",
"terminal.integrated.shell.windows": "C:\\WINDOWS\\system32\\cmd.exe",
"terminal.integrated.shellArgs.windows" : ["/K","D:\\CMDER\\vendor\\init.bat"],
"terminal.integrated.fontFamily": "Anonymous Pro for Powerline",
  • 需要注意下路径要保持一致,其中包含 cmder.exe 的路径和系统 cmd.exe 的路径
  • 字体也需要安装下,否则显示会有问题。字体下载

之后重启下 VSC,打开控制台,效果如文章开头所示。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK