我可以在标准的Windows中运行'make‘或'g++’,但是我不能在VSCode终端上运行它们。
我尝试使用VSCode终端运行‘make’或'g++',但是它找不到以下命令:
C:\CEngineering\VSCpp> make --version
'make' is not recognized as an internal or external command,
operable program or batch file.
C:\CEngineering\VSCpp> g++ --version
'g++' is not recognized as an internal or external command,
operable program or batch file.然而,标准Windows运行良好
C:\Users\cb> make --version
mingw-get version 0.6.3-pre-20170905-1
Copyright (C) 2009-2013, MinGW.org Project
This is free software; see the product documentation, or source code,
for copying and redistribution conditions. There is NO WARRANTY; not
even an implied WARRANTY OF MERCHANTABILITY, nor of FITNESS FOR ANY
PARTICULAR PURPOSE.
C:\Users\cb> g++ --version
g++ (MinGW.org GCC Build-2) 9.2.0
Copyright (c) 2019 Free Software Foundation, Inc.我不知道为什么我不能在VSCode终点站运行。我检查了VSCode终端设置,它们是相同的程序(C:\WINDOWS\system32\cmd.exe),但是结果不同.奇怪
发布于 2020-11-17 06:09:23
好吧,我想我找到了一些解决办法..。
请尝试:
解决方案1:将VS代码重新安装到路径,而不使用空白。我把它放到C:\VSCode上了
解决方案2:设置VS代码属性
administractor
祝好运。
发布于 2020-11-17 08:01:33
从标准Windows打开VSCode (只需调用code),当您执行此操作时,环境变量将传递给VSCode。
https://stackoverflow.com/questions/64864123
复制相似问题