Compile C++ file in VS Code using external cmd

Asked

Viewed 1,082 times

2

I can compile files in VS Code normally, but the files are shown in the terminal of the program, which does not allow the insertion of characters. How can I set up to be able to use a terminal that allows me to interact?inserir a descrição da imagem aqui

  • How did you build ? Are you using an extension or inserted the build command directly into the terminal ?

  • I used the Runner code extension. Queiro compile directly in vs code with the possibility to interact with the program.

  • Just for information, you are not using the terminal, there is the output window, the @Vinicius-Castro response shows how to open the terminal

1 answer

1

Press Control + ' to open the terminal, and enter g++ -the filename.cpp filename. Make sure you have g++ installed.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.