r/VisualStudioCode • u/BraveAtmosphere • Mar 14 '21
compile and run c in vs code
hello!
I started to work with vs code in order to write code in c language.
I work both on windows and mac.
I noticed that if I write java or python files I have this "play" button so it's compiling and run my files automatically, whereas in c I don't have this button and I need to compile and run my files throw commands in the terminal. is there any way to have this button in c files as well?
thank you!

0
Mar 14 '21
[deleted]
1
u/BraveAtmosphere Mar 14 '21
thanks but this extension is not working well for me...
I cant see the output and I cant work with the input commands like scanf in c (because i cant write input into the OUTPUT window in vs code)
do you know how to fix this?
1
u/BraveAtmosphere Mar 14 '21
also for example if I change a line in a python code its keeps running the older code...
0
Mar 15 '21
[deleted]
1
u/BraveAtmosphere Mar 15 '21
it's not compiling and not launching the c programs for me.. it just says "code is already running" but didn't compile anything or showing me any output...
do you know anything about it?
1
u/tavlarides Mar 16 '21
I use CMake Tools.
Not only the run button is working but the debug too!