Why Is My Terminal Not Displaying Output in VSCode?

0
1
Asked By CleverPineapple42 On

I'm working on a university project in C++ using Visual Studio Code on Windows, but I'm facing a problem where the terminal doesn't display anything. It worked perfectly fine for my earlier assignments, but now when I type the command to compile my script into a .exe file, nothing happens. The same command prompt just opens, and I'm at a loss. I've tried rebooting my PC and reinstalling VSCode, but that hasn't resolved the issue. Any assistance would be really appreciated as I need to progress with this project!

2 Answers

Answered By CuriousWombat88 On

In case you're not sure how to use the terminal, here's a quick guide: after opening the integrated terminal, you can navigate to your project directory using the `cd` command (like `cd path/to/your/project`). Then, run your compile command again. Make sure your command is correct and that you're using the right file name for your C++ source.

Answered By ChattyDragonfly77 On

It seems like the compilation isn't running properly. Make sure you're executing your commands in VSCode's integrated terminal. If you want to view the output from your compiled application, using the built-in terminal is usually the simplest method. You can open it by going to the menu and clicking on 'Terminal' > 'New Terminal'. Try running your command there and see if you get any errors or output.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.