Vscode runs the c language terminal and displays "The terminal will be reused by the task, press any key to close." There is no expected output content

Vscode runs the c language terminal and displays "The terminal will be reused by the task, press any key to close." There is no expected output content

After running suddenly, the last content displayed on the terminal is "The terminal will be reused by the task, press any key to close." After pressing any key, the current file path will jump out. After checking for a long time, I saw the solution in Zhihu. The original address is as follows

When vscode runs c language, "the terminal will be reused by the task, press any key to close." How to solve the problem? - Here-Kin's answer - Zhihu https://www.zhihu.com/question/431332180/answer/2059943685

The updated version of the C/C++ plug-in is 1.6.0. It is said that this version-"it seems that it will not call Windowsdebuger in powershell by itself". According to the original post, the method is to return to the original version 1.5.1. I don't remember where I clicked Open this URL,

https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools

Then find the 1.5.1 version of the C/C++ plug-in, click Download to download the
insert image description here
download path and select the folder extensions where the vscode plug-in is placed (generally the default path is C:\Users\username.vscode\extensions), after the download is complete, put the original After the C/C++ plug-in is uninstalled, run a .c file at will, and then a vscode pop-up window prompts to install the plug-in C/C++ plug-in. At this time, version 1.5.1 of C/C++ will be installed. At this time, my file can run normally and output.

Supongo que te gusta

Origin blog.csdn.net/weixin_44848852/article/details/119761198
Recomendado
Clasificación