admin管理员组文章数量:1130349
vscode 版本1.72.2 、1.70.0
setting.json 设置
"terminal.integrated.profiles.windows": {
"CommandPrompt": {
"path": ["C:\\Windows\\System32\\cmd.exe"],
"args": [],
"icon": "terminal-cmd"
},
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell",
"path": [
"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell_1.exe"
]
},
"GitBash": {
"path": ["E:\\ProgramFiles\\Git\\bin\\bash.exe"],
"args": ["-l"],
"icon": "terminal-bash"
}
},
"terminal.integrated.defaultProfile.windows": "CommandPrompt",
切换终端始终没有展示版本信息,无法输入,查看终端图标显示shell 集成无法激活
解决办法:
-
兼容性设置
打开vscode 图标,切换至兼容性标签,取消”以兼容模式运行这个程序“,再次重启vs code。如果还是不行,尝试 取消"以管理员身份运行此程序"
vscode 版本1.72.2 、1.70.0
setting.json 设置
"terminal.integrated.profiles.windows": {
"CommandPrompt": {
"path": ["C:\\Windows\\System32\\cmd.exe"],
"args": [],
"icon": "terminal-cmd"
},
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell",
"path": [
"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell_1.exe"
]
},
"GitBash": {
"path": ["E:\\ProgramFiles\\Git\\bin\\bash.exe"],
"args": ["-l"],
"icon": "terminal-bash"
}
},
"terminal.integrated.defaultProfile.windows": "CommandPrompt",
切换终端始终没有展示版本信息,无法输入,查看终端图标显示shell 集成无法激活
解决办法:
-
兼容性设置
打开vscode 图标,切换至兼容性标签,取消”以兼容模式运行这个程序“,再次重启vs code。如果还是不行,尝试 取消"以管理员身份运行此程序"
版权声明:本文标题:VS Code 终端无法输入 | 不显示版本信息 | shell 集成无法激活 解决办法 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/jiaocheng/1763926701a2972119.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论