skip to Main Content

I write and run my code in VScode but it shows nothing in the terminal.enter image description here

2

Answers


  1. You need to SAVE your code before you execute it. I see that your code is not saved.
    Save your code with this keyboard shortcut: Ctrl+S

    Also, you do not have a file, your file name says "New Document…". You need to Go to File, open a folder, and inside a new project folder create your file.
    Now your program will run as expected!

    Login or Signup to reply.
    1. Make sure that you save the file.
    2. make sure you open the file in the folder you saved.
    3. When you add code or change your code, don’t forget to save again
    4. Run your code.
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search