VS Code中PowerShell出现←]633;P;IsWindows=True提示及蜂鸣问题求助
解决VS Code中PowerShell 7显示
←]633;P;IsWindows=True并蜂鸣的问题 - 禁用PowerShell的终端特性检测
- 打开PowerShell输入
notepad $PROFILE,打开配置文件 - 粘贴以下代码后保存:
$env:TERM = 'xterm-256color' $env:WT_SESSION = $null - 重启VS Code里的PowerShell终端即可
- 打开PowerShell输入
- 配置VS Code终端参数
按Ctrl+,打开设置,搜索terminal.integrated.profiles.windows,找到PowerShell 7的配置项,替换为以下内容:"terminal.integrated.profiles.windows": { "PowerShell 7": { "source": "PowerShell", "args": [], "env": { "TERM": "xterm-256color", "WT_SESSION": null } } } - 可选方案:降级PowerShell版本
Win7对PowerShell 7.2+的终端兼容性有限,可尝试降级到7.1.x版本,该版本对Win7支持更完善,默认不会发送这类引发乱码和蜂鸣的控制序列
内容的提问来源于stack exchange,提问作者DHAVAL SOLANKI
相关产品推荐
相关产品推荐

