type
status
date
slug
summary
tags
category
icon
password
今天打开 VSCode 准备撸代码,打开终端,结果发现原来配置的 bash 不能用了,只有 PowerShell 和 Command Prompt。这让人很不舒适,于是网上搜罗了一番了,可惜都是些陈芝麻烂谷子,没一个能用的。
原来我们是用的 "terminal.integrated.shell.windows" 来配置终端的,但是在 2021 年 4 月已经弃用了这个字段,现在要用最新的 "terminal.integrated.profiles.windows" 来配置,配置如下:

详细步骤:
  1. 打开“设置”
    1. notion image
  1. 在搜索框中搜索:terminal.integrated.profiles.windows
    1. notion image
  1. 点击下方:在 settings.json 中编辑,进入到 settings.json 文件
    1. 之后将终端配置写进去,之后请看第 4 步。
      注意:
      1. "terminal.integrated.defaultProfile.windows": "GitBash" 这一条设置后,就会在打开终端后,默认使用 bash 作为终端了;
      1. Git Bash 的路径请填你自己电脑上 bash.exe 的位置。
  1. 最后,务必重启 VSCode 编辑器,然后打开终端重试即可。

 
Webpack 中的 module、chunk、bundle 究竟是什么?Webpack5 系列(六):不同模式的区分打包
Eric 见嘉
Eric 见嘉
Less is more.
公告
type
status
date
slug
summary
tags
category
icon
password
💭
合抱之木,生于毫末;九层之台,起于累土;千里之行,始于足下。

关于我
土木转行的前端开发工程师,陆续分享技术干货。
联系我
微信公众号:见嘉 Being Dev