出现的问题:

新安装的VS Code终端窗口无法输入命令
在这里插入图片描述

解决办法:

右键VS Code快捷方式,点击属性,打开“兼容性”标签,勾选"以管理员身份运行此程序",点击确定。

如下:
在这里插入图片描述

结果:

修改完成之后重启VS Code,还是不可以正常在终端窗口输入命令。
在这里插入图片描述

最后解决办法:

1.win+r 打开系统命令提示符cmd;
2.窗口左上角右键 -> 属性 ,勾选“使用旧版本控制台”;
3.重启VS Code;

GitHub 加速计划 / term / terminal
94.53 K
8.17 K
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:2 个月前 )
d04381ec "HighContrast" is not a possible requested theme. So `_UpdateBackgroundForMica()` would force the settings UI to be light or dark. To fix this, we just check if we're in high contrast mode and, if so, we don't bother setting the requested theme. 9 天前
e83434ff Turns out that having the styles for the KeyChordText and ParsedCommandLineText be empty for high contrast mode caused the issue. Since we're already using theme resources for the colors, we automatically adjust properly to whatever the high contrast theme is (Thanks XAML!). Bonus points: - we didn't need the theme dictionaries anymore, so I just moved them to the ResourceDictionary directly - ParsedCommandLineTextBlockStyle isn't used. So I removed it altogether. Validated command palette with multiple high contrast themes. See PR thread for demo. Closes #17914 9 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐