Help Needed: Can’t Get the Run Button to Work in VS Code for C Programs

0
1
Asked By CodingCat99 On

I'm new to coding and recently installed the Code Runner extension in Visual Studio Code. However, I'm still having to compile my C programs manually in the terminal using commands like `gcc filename.c` and then running them with `./a`. I can't seem to get the run button to function properly. Any advice on how to resolve this issue?

3 Answers

Answered By TechGuru42 On

It might be easier to switch to a full IDE like Visual Studio Community instead of using VS Code, which can be tricky to configure. Alternatively, you could just stick to basic command-line tools to really grasp how compiling works. You can edit your code in any text editor, then compile and run it using commands like `gcc filename.c` and `./a.out`. This way, you build a strong foundation!

NewCoder11 -

I actually tried a program on an online IDE, and it worked fine, but I’m struggling in VS Code.

Answered By Dan On

a

Answered By Keven Krok On

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.