How to Compile and Run C Program using Visual Studio Code Tasks

preview_player
Показать описание
In this video i tried to Compile and run c program using visual studio code with MinGW

steps i took in this video is

1.) First i Compiled and Run in visual studio code integrated terminal

by doing this i am able to run it through tasks without typing anything in command line.

part 1: Installing MinGW compiler and visual studio code.

part 2: compile and run c program using visual studio code tasks.

part 3: assign key board shortcut for compiling and running c program in visual studio code.

part 4: how to debug c program in visual studio code
Рекомендации по теме
Комментарии
Автор

I'm glad you took the time to make this, it helps me to understand it all a bit. Congrats

lspasiano
Автор

Thank you for this video. This is the first time I understood how the task file actually gets things done. Although there are easier ways to do it, for example the code runner extension, but using this method would help any one in the future when they try to setup visual studio for other languages. And please improve ur audio quality, other than that, your content is amazing. Keep up the good work.

umermahmood
Автор

Thank you. It works I do not know why it will be but for HolaMundo.c to work, I had to change the code by mistake:
  main () instead of int (main). and that's how it worked for me. Thank you!!!! from Spain.

kafkimatematico
Автор

for example your file name is " hello.c"
The short form;
for compile: gcc hello.c
for run: a.exe

ManzoorHussain-gzvk
Автор

better solution....
1 - install "Code Runner" extension
2 - Restart VScode

3 - Write your code
4 - "ctrl + alt + n" To run the code
Done

alexdominguess
Автор

this liké showing
GCC:error:hello world.c:no such fíles or directory

girish
Автор

how to dynamicly filename compile c file, example my file name It's not certain

barancangenc
Автор

Regardless what I do I cannot get any tasks to work ?

christopher
Автор

Nice tutorial, tho the audio is a mess, I had to use captions and mute the audio before losing my sanity.

frenzy
Автор

Brother I have a query what about c++ it's not accepting any of the C++ function

bhavishyasharma
Автор

Hey ! I followed all your steps as mentioned. But When I Open The Terminal, it shows the below messenge

“ cannot open source file “stddef.h” ( dependency of “studio.h”) [1, 1] “

wizzacx
Автор

I am a programmer, my C program is not compiling in vs code. please i need help

judithukwueze
Автор

0:24 why in pc it cant show open with code

gauravrewaliya