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
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!
a
I actually tried a program on an online IDE, and it worked fine, but I’m struggling in VS Code.