Visual Studio Code doesn’t run code

cvisual-studio-code

Why VS Code doesn't want to run code when I use scanf() function to get user's input knowing that without this function the code runs perfectly.

enter image description here]

Best Answer

  1. CTRL+SHIFT+X
  2. Type in search box Code Runner
  3. Install the extension
  4. Than click on File - Preferences - Settings
  5. Type code run in search box.
  6. Scroll down until you find Code-runner: Run In Terminal. Check the box Wheather to run code in Integrated Terminal.
  7. Restart VS Code

Good luck!

Related Question