安装testmate,然后配置如下。 setting.json "testMate.cpp.test.advancedExecutables": [ { "pattern": "{install}/**/*{test,Test,TEST}*" } ]